self-hosting/roles/traefik-proxy-docker/templates/data/traefik.toml

54 lines
1,003 B
TOML
Raw Normal View History

2018-04-25 15:26:28 +02:00
debug = false
logLevel = "ERROR"
defaultEntryPoints = ["https","http"]
[entryPoints]
[entryPoints.http]
address = ":80"
[entryPoints.http.redirect]
entryPoint = "https"
[entryPoints.https]
address = ":443"
2021-03-31 01:49:39 +02:00
[entryPoints.https.tls]
2018-04-25 15:26:28 +02:00
[entryPoints.traefik]
address = ":8080"
# Activate API and Dashboard
[api]
entryPoint = "traefik"
dashboard = true
[retry]
[docker]
endpoint = "unix:///var/run/docker.sock"
2019-11-05 03:37:05 +01:00
{% if inventory_hostname in (groups['mail']) %}
domain = "mail1.banditlair.com"
{% else %}
2018-04-25 15:26:28 +02:00
domain = "banditlair.com"
2019-11-05 03:37:05 +01:00
{% endif %}
2018-04-25 15:26:28 +02:00
watch = true
exposedbydefault = false
[acme]
email = "letsencrypt.account@banditlair.com"
storage = "acme.json"
entryPoint = "https"
OnHostRule = true
2019-06-08 02:00:13 +02:00
KeyType = "RSA4096"
2018-04-25 15:26:28 +02:00
[acme.httpChallenge]
entryPoint = "http"
[[acme.domains]]
2019-11-05 03:37:05 +01:00
{% if inventory_hostname in (groups['mail']) %}
main = "mail1.banditlair.com"
{% else %}
2018-04-25 15:26:28 +02:00
main = "banditlair.com"
2018-11-04 15:21:33 +01:00
sans = ["mail.banditlair.com"]
2019-11-05 03:37:05 +01:00
{% endif %}
2018-11-04 15:21:33 +01:00
[accessLog]
2019-06-08 02:00:13 +02:00
filePath = "/var/log/traefik/access.log"