mention real path example

This commit is contained in:
Mohammed Al Sahaf 2023-12-19 07:51:21 +00:00
parent 91f92aaa53
commit e006fa306e

View file

@ -147,7 +147,7 @@ Environment="CF_API_TOKEN=super-secret-cloudflare-tokenvalue"
Similarly, if you prefer to maintain a separate file to maintain the environment variables (envfile), you may use the [`EnvironmentFile`](https://www.freedesktop.org/software/systemd/man/latest/systemd.exec.html#EnvironmentFile=) directive as such:
```systemd
[Service]
EnvironmentFile=/path/to/envfile.env
EnvironmentFile=/etc/caddy/.env
```
Or, for example if you need to change the config file from the default of the Caddyfile, to instead using a JSON file (note that `Exec*` directives [must be reset with empty strings](https://www.freedesktop.org/software/systemd/man/systemd.service.html#ExecStart=) before setting a new value):