Using caddy with cloudflare DNS

The caddy environ command will show the environment for your current user, not for the user Caddy runs as under systemd, i.e. the caddy user.

See Keep Caddy Running — Caddy Documentation for how to set up systemd config overrides, including setting env vars.

2 Likes