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:
Kienan Stewart 2022-09-19 20:42:33 -04:00
parent 2bd4807bca
commit fbe48d37a7
3 changed files with 6 additions and 6 deletions

View File

@ -24,4 +24,4 @@ services:
volumes:
- ./traefik.toml:/traefik.toml:ro
- traefik_config:/traefik.conf.d:ro
- certs:/certs
- certs:/etc/traefik/acme

View File

@ -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:

View File

@ -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]