--envfile to FORCE/overrite environment variables?

1. The problem I’m having:

since 2.7.5 (PR about --envfile NOT overwriting) my supervisor setup using --envfile to OVERWRITE environment variables… fails. Specifically $HOME I need to overwrite

2. Error messages and/or full log output:

3. Caddy version:

2.7.5 +

4. How I installed and ran Caddy:

both cusotm build 2.7.5/2.7.6 and repo installations

a. System environment:

Devuan LXC tempates (No-systemd)

b. Command:

caddy run --envfile /etc/caddy/CaddyEnv

c. Service/unit/compose file:

caddyEnv

HOME=/etc/caddy
USER=www-data

5. Links to relevant resources:

Answered here Prevent overriding environment variables with --envfile · Issue #5802 · caddyserver/caddy · GitHub

TL;DR: Overriding HOME is the wrong thing to do. Override XDG_* or configure storage.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.