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

51 lines
1.2 KiB
Django/Jinja

[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]
provider = "gandiv5"
delayBeforeCheck = 10
[metrics]
[metrics.prometheus]
entryPoint = "metrics"