我正在尝试使用LetsEncrypt中的通配符证书设置traefik。
在Traefik中使用LynEncrypt的dyn提供程序时,我收到以下错误消息:
{
"Account": {
"Email": "my.name@example.com",
"Registration": {
"body": {
"status": "valid",
"contact": [
"mailto:my.name@example.com"
]
},
"uri": "https://acme-v02.api.letsencrypt.org/acme/acct/34263018"
},
"PrivateKey": "MIIJKAIBAAKCAgEAsvImYVFqq [trimmed info] BPLMwF7E1F2GJg61qYJ4a0="
},
"Certificates": null,
"HTTPChallenges": null
}
当我看到生成的acme.json时,我看到了:
reverse-proxy:
command:
- --debug
- --logLevel=DEBUG
- --acme.dnschallenge=true
- --acme.dnschallenge.provider=dyn
- --acme.domains='*.lb.ops.example.net'
- --acme.email=my.name@example.com
- --acme.entryPoint=https
- --acme.storage=/etc/traefik/acme/acme.json
- --defaultentrypoints=http,https
- --entrypoints=Name:http Address::80 Redirect.EntryPoint:https
- --entrypoints=Name:https Address::443 TLS
- --web
depends_on:
- consul
environment:
DYN_CUSTOMER_NAME: mycompanyname
DYN_PASSWORD: a-reasonable-password
DYN_USER_NAME: aserviceaccountname
image: traefik:1.6
links:
- consul
ports:
- published: 80
target: 80
- published: 443
target: 443
- published: 8080
target: 8080
volumes:
- /tmp/acme:/etc/traefik/acme:rw
- /tmp/traefik:/var/log/traefik:rw
我在docker-compose.yml中使用以下内容:
classnames