From ee6838dc40b8e53dafaae1f962ef9c31f58c765e Mon Sep 17 00:00:00 2001 From: Francis Lavoie Date: Sun, 6 Oct 2024 11:13:33 -0400 Subject: [PATCH] Clarify env file --- src/docs/markdown/running.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/docs/markdown/running.md b/src/docs/markdown/running.md index cb4d0bd..98a1fb5 100644 --- a/src/docs/markdown/running.md +++ b/src/docs/markdown/running.md @@ -150,6 +150,12 @@ Similarly, if you prefer to maintain a separate file to maintain the environment EnvironmentFile=/etc/caddy/.env ``` +Then your `/etc/caddy/.env` file may look like this (do not use `"` quotes around the values): + +```env +CF_API_TOKEN=super-secret-cloudflare-tokenvalue +``` + 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): ```systemd [Service]