ansible/roles/traefik/templates/traefik.toml.j2

51 lines
1.2 KiB
Plaintext
Raw Normal View History

2021-04-24 18:15:48 +02:00
[global]
sendAnonymousUsage = false
checkNewVersion = true
[api]
[entryPoints]
[entryPoints.web]
address = ":{{ traefik_http_port }}"
[entryPoints.web.http.redirections.entryPoint]
to = "websecure"
scheme = "https"
[entryPoints.websecure]
address = ":{{ traefik_https_port }}"
[entryPoints.websecure.http]
middlewares = ["hardening@file", "compression@file"]
[entryPoints.websecure.http.tls]
certResolver = "letsencrypt"
options = "tls12@file"
[entryPoints.metrics]
address = ":{{ traefik_metrics_port }}"
[providers]
providersThrottleDuration = "2s"
[providers.docker]
watch = true
endpoint = "unix:///var/run/docker.sock"
exposedByDefault = false
network = "proxy"
[providers.file]
filename = "/traefik_dynamic.toml"
watch = true
[log]
level = "INFO"
[accessLog]
[certificatesResolvers]
[certificatesResolvers.letsencrypt]
[certificatesResolvers.letsencrypt.acme]
email = "{{ letsencrypt_email }}"
storage = "/certs/acme.json"
[certificatesResolvers.letsencrypt.acme.dnsChallenge]
2024-05-17 17:52:05 +02:00
provider = "ovh"
2021-04-24 18:15:48 +02:00
delayBeforeCheck = 10
[metrics]
[metrics.prometheus]
entryPoint = "metrics"