From 79521041e80221a5f36f0aa76de8bd2d68bdc56c Mon Sep 17 00:00:00 2001 From: Francis Lavoie Date: Sat, 20 Nov 2021 00:06:38 -0500 Subject: [PATCH] docs: Emphasize the storage locations when running with systemd --- src/docs/markdown/running.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/docs/markdown/running.md b/src/docs/markdown/running.md index 4b9ac43..94ed8e0 100644 --- a/src/docs/markdown/running.md +++ b/src/docs/markdown/running.md @@ -60,6 +60,10 @@ You can stop the service with: Do not stop the service to change Caddy's configuration. Stopping the server will incur downtime. Use the reload command instead. +The Caddy process will run as the `caddy` user, which has its `$HOME` set to `/var/lib/caddy`. This means that: +- The default [data storage location](/docs/conventions#data-directory) (for certificates and other state information) will be in `/var/lib/caddy/.local/share/caddy`. +- The default [config storage location](/docs/conventions#configuration-directory) (for the auto-saved JSON config, primarily useful for the `caddy-api` service) will be in `/var/lib/caddy/.config/caddy`. + ### Manual Installation