Is it yet impossible to specify ACME resolver email as an environment variable?

Hi there

Times ago I was stuck with the certificatesResolvers being part of the static configuration, hence unable to take environment variable, hence the email was written in stone

certificatesResolvers:
  letsencrypt: # random key name
    acme:
      email: "me@company.cloud"
      storage: "/etc/traefik/acme.json"
      httpChallenge:
        entryPoint: "web"

Is there a way now to workaround the hardcoded email ? Without using a command override --certificateResolvers.letsencrypt.acme.email=$(ACME_EMAIL), I guess it's possible, but I want to keep the configuration in file ?

hello @rrrrrrrrrr

Thanks for using Traefik.

Here are all available environment variables that might be configured.

The ACME email address can be set by: TRAEFIK_CERTIFICATESRESOLVERS_<NAME>_ACME_EMAIL

Please also note that Traefik can be configured through:

  • static configuration file
  • CLI arguments
  • environments variables

Those methods are mutually exclusive which means you can use only one at the same time.

As you said, they are mutually exclusive. I'm relying on files. The resolvers stuff goes in the static, which can't interpolate env variable as far as I know