debug = false logLevel = "ERROR" defaultEntryPoints = ["https","http"] [entryPoints] [entryPoints.http] address = ":80" [entryPoints.http.redirect] entryPoint = "https" [entryPoints.https] address = ":443" [entryPoints.https.tls] [entryPoints.traefik] address = ":8080" # Activate API and Dashboard [api] entryPoint = "traefik" dashboard = true [retry] [docker] endpoint = "unix:///var/run/docker.sock" {% if inventory_hostname in (groups['mail']) %} domain = "mail1.banditlair.com" {% else %} domain = "banditlair.com" {% endif %} watch = true exposedbydefault = false [acme] email = "letsencrypt.account@banditlair.com" storage = "acme.json" entryPoint = "https" OnHostRule = true KeyType = "RSA4096" [acme.httpChallenge] entryPoint = "http" [[acme.domains]] {% if inventory_hostname in (groups['mail']) %} main = "mail1.banditlair.com" {% else %} main = "banditlair.com" sans = ["mail.banditlair.com"] {% endif %} [accessLog] filePath = "/var/log/traefik/access.log"