traefik dnsChallenge和httpChallenge(备份)同时进行

时间:2018-05-05 19:29:45

标签: docker traefik

我想在域名中使用dnsChallenge,我在Cloudflare使用,如果失败,我想使用httpChallenge。这可能与traefik有关吗?

错误:

traefik    | time="2018-05-05T18:33:03Z" level=error msg="Unable to obtain ACME certificate for domains \"www.example.org,example.org\" detected thanks to rule \"Host:www.example.org,example.org\" : cannot obtain certificates map[example.org:Error presenting token: Zone example.org. not found in CloudFlare for domain _acme-challenge.example.org. www.example.org:Error presenting token: Zone example.org. not found in CloudFlare for domain _acme-challenge.www.example.org.]"

我的配置看起来像这样。

debug = false
logLevel = "WARN"
defaultEntryPoints = ["https","http"]

# Entrypoints, http and https
[entryPoints]
  [entryPoints.http]
  address = ":80"
  [entryPoints.https]
  address = ":443"
  [entryPoints.https.tls]

# Enable ACME (Let's Encrypt): automatic SSL
[acme]
email = "admin@xxx"
storage = "/etc/traefik/acme/acme.json"
entryPoint = "https"
onDemand = false
OnHostRule = true

  [acme.httpChallenge]
  entryPoint = "http"

  [acme.dnsChallenge]
  provider = "cloudflare"
  delayBeforeCheck = 0

[[acme.domains]]
  main = "*.sub.example.com"
  sans = ["sub.example.com"]

[docker]
endpoint = "unix:///var/run/docker.sock"
watch = true
exposedbydefault = false

1 个答案:

答案 0 :(得分:1)

目前,不可能同时使用这两项挑战。

相关问题