CLOUDFLARE_EMAIL variable from .env file used instead of secrets cf_email
gardz opened this issue · 2 comments
gardz commented
The Traefik command "certificatesResolvers.dns-cloudflare.acme.email" is using the global $CLOUDFLARE_EMAIL variable from the .env file even though the "cf_email" secret via the $CF_API_EMAIL_FILE variable is used for this container.
If the intention is to hide the email via a secret, this line should become:
- --certificatesResolvers.dns-cloudflare.acme.email=$CF_API_EMAIL_FILE
gardz commented
For some reason when I tried this, I kept getting this error even though I swear I have the secret file mapped in correctly:
WARN[0000] The "CF_API_EMAIL_FILE" variable is not set. Defaulting to a blank string.