Skip to content

Instantly share code, notes, and snippets.

@cdaringe
Created April 2, 2017 17:57
Show Gist options
  • Save cdaringe/ffac907f25b0fef4c4d962bb71b600b6 to your computer and use it in GitHub Desktop.
Save cdaringe/ffac907f25b0fef4c4d962bb71b600b6 to your computer and use it in GitHub Desktop.
traefik.toml
checkNewVersion = false
debug = true
defaultEntryPoints = ["http", "https"] # fear not, we redirect below
logLevel = "DEBUG"
watch = true
# To redirect an http entrypoint to an https entrypoint (with SNI support):
[entryPoints]
[entryPoints.http]
address = ":80"
[entryPoints.http.redirect]
entryPoint = "https"
[entryPoints.https]
address = ":443"
[entryPoints.https.tls]
MinVersion = "VersionTLS12"
[[entryPoints.https.tls.certificates]]
CertFile = "<path to cert>"
KeyFile = "<path to key>"
[docker]
endpoint = "unix:///var/run/docker.sock"
watch = true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment