ansible-nas/roles/traefik/templates/traefik.toml

47 lines
1 KiB
TOML
Raw Normal View History

2018-11-25 11:07:09 +00:00
[entryPoints]
2021-01-19 16:55:12 +00:00
[entryPoints.web]
address = ":80"
2021-01-19 16:55:12 +00:00
[entryPoints.web.http.redirections.entryPoint]
to = "websecure"
2018-11-25 11:07:09 +00:00
2021-01-19 16:55:12 +00:00
[entryPoints.websecure]
address = ":{{ traefik_port_https }}"
2018-11-25 11:07:09 +00:00
2021-01-19 16:55:12 +00:00
[entryPoints.websecure.http.tls]
certResolver = "letsencrypt"
2018-11-25 11:07:09 +00:00
2021-01-19 16:55:12 +00:00
[entryPoints.websecure.http.tls.domains]
main = "{{ ansible_nas_domain }}"
sans = [
"*.{{ ansible_nas_domain }}"
]
2018-11-25 11:07:09 +00:00
2021-01-19 16:55:12 +00:00
[entryPoints.traefik]
address = ":{{ traefik_port_ui }}"
2018-11-25 11:07:09 +00:00
2021-01-19 16:55:12 +00:00
[providers]
providersThrottleDuration = "2s"
[providers.docker]
exposedbydefault = false
2018-11-25 11:07:09 +00:00
[api]
2021-01-19 16:55:12 +00:00
insecure = true
2018-11-25 11:07:09 +00:00
dashboard = true
2021-01-19 16:55:12 +00:00
[log]
level = "{{ traefik_log_level }}"
2018-11-25 11:07:09 +00:00
[ping]
2021-01-19 16:55:12 +00:00
terminatingStatusCode = 0
2018-11-25 11:07:09 +00:00
2021-01-19 16:55:12 +00:00
[certificatesResolvers]
[certificatesResolvers.letsencrypt]
[certificatesResolvers.letsencrypt.acme]
email = "{{ ansible_nas_email }}"
2021-01-20 00:27:33 +00:00
storage = "/letsencrypt/acme.json"
caserver = "{{ traefik_acme_server }}"
2021-01-19 16:55:12 +00:00
[certificatesResolvers.letsencrypt.acme.dnsChallenge]
2021-01-20 00:27:33 +00:00
provider = "{{ traefik_dns_provider }}"