【发布时间】:2019-04-13 15:58:54
【问题描述】:
Traefik.toml
defaultEntryPoints = ["http","https"]
[web]
address = ":8080"
[entryPoints]
[entryPoints.http]
address = ":80"
[entryPoints.http.auth.forward]
address = "http://forward-oauth:4181"
[entryPoints.http.redirect]
entryPoint = "https"
[entryPoints.https]
address = ":443"
[entryPoints.https.tls]
[docker]
endpoint="unix:///var/run/docker.sock"
domain="docker.localhost"
watch=true
exposedByDefault = false
[acme]
email = "tim@tim.com"
storage = "acme.json"
caServer = "https://acme-staging-v02.api.letsencrypt.org/directory"
entryPoint = "https"
[acme.dnsChallenge]
provider = "namecheap"
delayBeforeCheck = 0
[[acme.domains]]
main = "*.tim.com"
sans = ["timelfelt.com"]
[file]
[backends]
[backends.backend1]
[backends.backend1.servers.server1]
url = "http://192.168.192.116"
[frontends]
[frontends.frontend1]
backend = "backend1"
passHostHeader = true
[frontends.frontend1.routes.adfs]
rule = "Host:adfs.blah.com"
我在 Traefik docker 日志中收到一条错误消息:
time="2018-11-10T06:29:28Z" level=error msg="Unable to get ACME certificate for domain \".tim.com,tim.com\" : 无法生成通配符域 \".tim.com,tim.com\" 的 ACME 提供商中的证书:ACME 需要 DNSChallenge"
namecheap API 和用户名都在主机上设置。 80 和 443 也可用。
【问题讨论】: