Hi Michal and thank you for trying!
Ok, so changing environment of the container doesn’t help, so we need to create a environment entry per se.
Try this:
- After logging into traefik module, edit the file
../systemd/user/traefik.service
- Add the following line after the last
--volume
entry (here a gist to illustrate the edited file)
--env=LEGO_CA_CERTIFICATES=/etc/traefik/custom_certificates/root-homelab.crt \
- Reload systemd with
systemctl --user daemon-reload
- Restart traefik service with
systemctl --user restart traefik
NOTE: this won’t persists module updates, a manual change in the module might be needed in order to implement such feature.