我想在服务器中的我的差异网站上使用treafik,但是我在使用Web服务器nginx重新安装Traefik时遇到问题。首次启动nginx容器时,不会生成证书。
错误:
time="2018-10-20T11:51:15Z" level=error msg="Unable to obtain ACME certificate for domains \"www.minenewgeneration.fr\" detected thanks to rule \"Host:www.minenewgeneration.fr\" : cannot get ACME client get directory at 'https://acme-v02.api.letsencrypt.org/directory': failed to get json \"https://acme-v02.api.letsencrypt.org/directory\": Get https://acme-v02.api.letsencrypt.org/directory: dial tcp 104.123.22.170:443: i/o timeout"
traefik.toml:
defaultEntryPoints = ["http", "https"]
[entryPoints]
[entryPoints.http]
address = ":80"
[entryPoints.http.redirect]
entryPoint = "https"
[entryPoints.https]
address = ":443"
[entryPoints.https.tls]
[docker]
endpoint = "unix:///var/run/docker.sock"
domain = "minenewgeneration.fr"
watch = true
exposedbydefault = false
[acme]
email = "emilien.follonier@gmail.com"
storage = "acme.json"
entryPoint="https"
acmeLogging=true
onDemand = false
onHostRule = true
[acme.httpChallenge]
entryPoint = "http"