我正在使用HomelabOs和Traefik v 1.7.10。
我的Traefik Toml看起来像这样:
debug = false
logLevel = "ERROR"
defaultEntryPoints = ["http", "https"]
[entryPoints]
[entryPoints.http]
address = ":80"
[entryPoints.https]
address = ":443"
[entryPoints.https.tls]
[retry]
[api]
[Docker]
endpoint = "unix:///var/run/docker.sock"
domain = "pinguinshow.com"
watch = true
exposedByDefault = false
[acme]
email = "foo@myemail.com"
storage = "acme.json"
entryPoint = "https"
onHostRule = true
[acme.httpChallenge]
entryPoint = "http"
总的来说,这很好。我可以在Traefik中看到许多前端,其中包括:
但是,如果我查看Traefik日志以检查LetsEncyrpt证书的状态,则会收到此错误:
time="2019-04-11T03:24:06Z" level=error msg="Unable to obtain ACME certificate for domains \"sync.\" detected thanks to rule \"Host:sync.\" : unable to generate a certificate for the domains [sync]: acme: error: 400 :: POST :: https://acme-v02.api.letsencrypt.org/acme/new-order :: urn:ietf:params:acme:error:malformed :: Error creating new order :: DNS name does not have enough labels, url: ",=
在#Traefik上和一个好人说话,他呢?建议traefik尝试为“ sync”而不是“ sync.pinguinshow.com”生成证书,但我不确定为什么?那样做。关于修复的任何建议吗?