Skip to content

Instantly share code, notes, and snippets.

@deimosfr
Created July 23, 2018 16:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save deimosfr/9b4bbaba99738779f40279a31063e1d9 to your computer and use it in GitHub Desktop.
Save deimosfr/9b4bbaba99738779f40279a31063e1d9 to your computer and use it in GitHub Desktop.
traefik config
checkNewVersion = false
MaxIdleConnsPerHost = 500
logLevel = "INFO"
defaultEntryPoints = ["http", "https"]
[respondingTimeouts]
idleTimeout = "180s"
writeTimeout = "60s"
readTimeout = "60s"
[retry]
attempts = 3
[api]
dashboard = true
[metrics]
[metrics.prometheus]
entryPoint = "traefik"
[metrics.statistics]
recentErrors = 10
[kubernetes]
endpoint = kubernetes
[consul]
endpoint = "consul:8500"
watch = true
prefix = "traefik"
[acme]
email = "mymail@mymail.com"
storage = "traefik/acme/account"
entryPoint = "https"
OnHostRule = true
acmeLogging = true
[acme.dnsChallenge]
provider = "cloudflare"
delayBeforeCheck = 20
[[acme.domains]]
main = *.mydomain.com
sans = ["mydomain.com"]
[entryPoints]
[entryPoints.http]
address = ":80"
compress = true
[entryPoints.http.redirect]
entryPoint = "https"
[entryPoints.https]
address = ":443"
compress = true
[entryPoints.https.tls]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment