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:
|
volumes:
|
||||||
- ./traefik.toml:/traefik.toml:ro
|
- ./traefik.toml:/traefik.toml:ro
|
||||||
- traefik_config:/traefik.conf.d:ro
|
- traefik_config:/traefik.conf.d:ro
|
||||||
- certs:/certs
|
- certs:/etc/traefik/acme
|
||||||
|
|
|
@ -10,7 +10,7 @@ services:
|
||||||
image: docker.io/traefik:latest
|
image: docker.io/traefik:latest
|
||||||
command:
|
command:
|
||||||
- "--configFile=/traefik.toml"
|
- "--configFile=/traefik.toml"
|
||||||
- "--acme.email=${ACME_MAIL:-info@example.com}"
|
- "--certificatesresolvers.myresolver.acme.email=${ACME_MAIL:-info@example.com}"
|
||||||
environment:
|
environment:
|
||||||
- TRAEFIK_API_INSECURE=true
|
- TRAEFIK_API_INSECURE=true
|
||||||
networks:
|
networks:
|
||||||
|
|
|
@ -16,11 +16,11 @@
|
||||||
[api]
|
[api]
|
||||||
dashboard = true
|
dashboard = true
|
||||||
|
|
||||||
[acme]
|
|
||||||
|
[certificatesResolvers.myresolver.acme]
|
||||||
storage = "acme.json"
|
storage = "acme.json"
|
||||||
entryPoint = "https"
|
[certificatesResolvers.myresolver.acme.httpChallenge]
|
||||||
onHostRule = true
|
# used during the challenge
|
||||||
[acme.httpChallenge]
|
|
||||||
entryPoint = "http"
|
entryPoint = "http"
|
||||||
|
|
||||||
[providers]
|
[providers]
|
||||||
|
|
Loading…
Reference in New Issue