feat(traefik): support Cloudflare DNS-01 ACME challenge

This commit is contained in:
2026-06-01 10:09:28 +03:30
parent 57284c07d4
commit ba958fd67d
4 changed files with 68 additions and 4 deletions

View File

@@ -51,6 +51,19 @@ TRAEFIK_ACME_MAIL=
TRAEFIK_ACME_CASERVER=
# Enable the Traefik ACME (Automatic Certificate Management Environment) for automatic SSL certificate management.
TRAEFIK_SERVICES_TLS_CONFIG="tls.certresolver=letsencrypt"
# ACME challenge type. Set to "dns" for environments where inbound HTTP/HTTPS validation is not possible.
# Supported values: http, dns, tls
TRAEFIK_ACME_CHALLENGE=http
# DNS provider used by Traefik/lego when TRAEFIK_ACME_CHALLENGE=dns.
TRAEFIK_ACME_DNS_PROVIDER=cloudflare
# Delay (seconds) before DNS propagation check for DNS challenge.
TRAEFIK_ACME_DNS_DELAYBEFORECHECK=0
# Optional comma-separated DNS resolvers for propagation checks (host:port format).
# Example: TRAEFIK_ACME_DNS_RESOLVERS=1.1.1.1:53,8.8.8.8:53
TRAEFIK_ACME_DNS_RESOLVERS=
# Cloudflare API token for DNS challenge.
# Required when TRAEFIK_ACME_CHALLENGE=dns and TRAEFIK_ACME_DNS_PROVIDER=cloudflare.
CF_DNS_API_TOKEN=
# Enable Traefik to use local certificates.
#TRAEFIK_SERVICES_TLS_CONFIG="tls=true"
# You also need to provide a config file in ./config/traefik/dynamic/certs.yml