ansible-nas/roles/traefik/templates/traefik.toml
2021-01-19 16:55:12 +00:00

46 lines
1 KiB
TOML

[entryPoints]
[entryPoints.web]
address = ":80"
[entryPoints.web.http.redirections.entryPoint]
to = "websecure"
[entryPoints.websecure]
address = ":{{ traefik_port_https }}"
[entryPoints.websecure.http.tls]
certResolver = "letsencrypt"
[entryPoints.websecure.http.tls.domains]
main = "{{ ansible_nas_domain }}"
sans = [
"*.{{ ansible_nas_domain }}"
]
[entryPoints.traefik]
address = ":{{ traefik_port_ui }}"
[providers]
providersThrottleDuration = "2s"
[providers.docker]
exposedbydefault = false
[api]
insecure = true
dashboard = true
[log]
level = "{{ traefik_log_level }}"
[ping]
terminatingStatusCode = 0
[certificatesResolvers]
[certificatesResolvers.letsencrypt]
[certificatesResolvers.letsencrypt.acme]
email = "{{ ansible_nas_email }}"
storage = "acme.json"
caserver = "https://acme-staging-v02.api.letsencrypt.org/directory"
[certificatesResolvers.letsencrypt.acme.dnsChallenge]
provider = "cloudflare"