mirror of
https://github.com/caddyserver/website.git
synced 2025-04-22 04:56:17 -04:00
mention real path example
This commit is contained in:
parent
91f92aaa53
commit
e006fa306e
1 changed files with 1 additions and 1 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue