I’m trying to deploy Caddy 2.0 beta 10 as a systemd service on Ubuntu 18.04 LTS, basing my service definition largely on the “official” one for Caddy 1.
It appears as if Caddy 2.0 doesn’t look at the CADDYPATH env var anymore.
Is there already a way to tell Caddy 2.0 where to put the certificates, ideally via the Caddyfile or command line options?
(Currently I’m getting obtaining certificate: failed storage check: mkdir /var/www: permission denied errors, because Caddy is trying to create /var/www but I have Environment=CADDYPATH=/etc/ssl/caddy in my service definition, because that’s where I’d like the certs to go.)
Thanks in advance for any help and hats off for the great work so far!