Update certificate resolver configuration
This matches what is suggested in their documentation https://doc.traefik.io/traefik/https/acme/#certificate-resolvers
This commit is contained in:
parent
2bd4807bca
commit
fbe48d37a7
|
@ -24,4 +24,4 @@ services:
|
|||
volumes:
|
||||
- ./traefik.toml:/traefik.toml:ro
|
||||
- traefik_config:/traefik.conf.d:ro
|
||||
- certs:/certs
|
||||
- certs:/etc/traefik/acme
|
||||
|
|
|
@ -10,7 +10,7 @@ services:
|
|||
image: docker.io/traefik:latest
|
||||
command:
|
||||
- "--configFile=/traefik.toml"
|
||||
- "--acme.email=${ACME_MAIL:-info@example.com}"
|
||||
- "--certificatesresolvers.myresolver.acme.email=${ACME_MAIL:-info@example.com}"
|
||||
environment:
|
||||
- TRAEFIK_API_INSECURE=true
|
||||
networks:
|
||||
|
|
|
@ -16,11 +16,11 @@
|
|||
[api]
|
||||
dashboard = true
|
||||
|
||||
[acme]
|
||||
|
||||
[certificatesResolvers.myresolver.acme]
|
||||
storage = "acme.json"
|
||||
entryPoint = "https"
|
||||
onHostRule = true
|
||||
[acme.httpChallenge]
|
||||
[certificatesResolvers.myresolver.acme.httpChallenge]
|
||||
# used during the challenge
|
||||
entryPoint = "http"
|
||||
|
||||
[providers]
|
||||
|
|
Loading…
Reference in New Issue