Custom ACME Server - tls error to server

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:

  1. After logging into traefik module, edit the file ../systemd/user/traefik.service
  2. 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 \
  1. Reload systemd with systemctl --user daemon-reload
  2. 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.

4 Likes