infra-oasis21/traefik/traefik.toml

51 lines
1.3 KiB
TOML
Raw Normal View History

2022-04-28 16:41:42 +02:00
[global]
sendAnonymousUsage = false
checkNewVersion = true
[entryPoints]
[entryPoints.web]
address = ":80"
[entryPoints.web.http.redirections.entryPoint]
to = "websecure"
scheme = "https"
[entryPoints.websecure]
address = ":443"
[entryPoints.websecure.http]
middlewares = ["hardening@file", "compression@file"]
[entryPoints.websecure.http.tls]
2022-05-05 11:17:28 +02:00
certResolver = "letsencrypt"
2022-04-28 16:41:42 +02:00
options = "tls12@file"
2022-05-05 11:17:28 +02:00
[entryPoints.metrics]
address = ":8082"
2022-04-28 16:41:42 +02:00
[providers]
providersThrottleDuration = "2s"
[providers.docker]
watch = true
endpoint = "unix:///var/run/docker.sock"
2022-05-05 11:17:28 +02:00
exposedByDefault = false
2022-04-28 16:41:42 +02:00
network = "proxy"
[providers.file]
filename = "/traefik_dynamic.toml"
watch = true
[log]
2022-05-05 11:17:28 +02:00
level = "INFO"
2022-04-28 16:41:42 +02:00
[accessLog]
format = "json"
[accessLog.fields.headers]
defaultMode = "keep"
# See https://doc.traefik.io/traefik/observability/access-logs/#time-zones
[accessLog.fields.names]
"StartUTC" = "drop"
"ClientUsername" = "drop"
2022-05-05 11:17:28 +02:00
[certificatesResolvers]
[certificatesResolvers.letsencrypt]
[certificatesResolvers.letsencrypt.acme]
email = "serveur@oasis21.org"
storage = "/certs/acme.json"
[certificatesResolvers.letsencrypt.acme.httpChallenge]
entryPoint = "web"