1. The problem I’m having:
I want to set either by environment variable or commandline option the FULL path to the data and config directories. I totally understand I can set export XDG_DATA_HOME and XDG_CONFIG_HOME but those do not set the full path just the parent of a /caddy
. I don’t need caddy to put /caddy
on those paths. I have worked around this in the past with links and clever name changes but is there a way to set directly those two caddy variables AppDataDir
and AppConfigDir
2. Error messages and/or full log output:
caddy adds /caddy
to these below. I would rather not make use of XDG
environment variables
XDG_DATA_HOME=/data/trantor
XDG_CONFIG_HOME=/opt/caddy/trantor
caddy.AppDataDir=/data/trantor/caddy
caddy.AppConfigDir=/opt/caddy/trantor/caddy
would like that to be
caddy.AppDataDir=/data/trantor
caddy.AppConfigDir=/opt/caddy/trantor
3. Caddy version:
caddy.Version=v2.8.4
4. How I installed and ran Caddy:
install caddy via archlinux package. Run caddy via a script that sets various environment variables
a. System environment:
archlinux/manjaro recent upgrade
b. Command:
run from within a script. At this point just running caddy environ
so I can see the environment