Caddy was started by /etc/systemd/system/caddy.service , running with the user www-data , and certs path has been found in /var/www/.local/share/caddy/
So if I want to run caddy with user nobody:nogroup , how should I setup the certs path , in order to compliance with the XDG Base Directory Specification ?
Why not run as the caddy user, as our official systemd config does?
Please fill out the help topic template, it’s hard to help without fully understanding your setup. The template is there for a reason. It saves time for both you and us.