We install the hook.service and set the “$CADDYPATH” to custom location but Caddy use is default path to host the SSLs - [INFO][FileStorage:.caddy] Started certificate maintenance routine
How can we fix it?
This is what I’m using to start the service: "caddy -service install -agree -email noam@xxxxx.com -conf="/etc/caddyfile/Caddyfile" -log "/etc/caddy_log/requests.log" -name mydomainname"
And I’m setting variable inside “/etc/environment” like that: CADDYPATH="/etc/caddy_efs/caddy_ssl"
I’m not sure without more investigation, but I suspect that the CADDYPATH env variable is not set in whatever environment hook.service is causing Caddy to be run.