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

View File

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

View File

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