Skip to content

Instantly share code, notes, and snippets.

@gmaslowski
Created April 7, 2018 18:55
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 gmaslowski/b5f69b5436531d48cd7ddfb62c362311 to your computer and use it in GitHub Desktop.
Save gmaslowski/b5f69b5436531d48cd7ddfb62c362311 to your computer and use it in GitHub Desktop.
Traefik with auto Certificate renewal
debug = false
checkNewVersion = true
logLevel = "WARN"
defaultEntryPoints = ["https","http"]
[entryPoints]
[entryPoints.http]
address = ":80"
[entryPoints.http.redirect]
entryPoint = "https"
[entryPoints.https]
address = ":443"
[entryPoints.https.tls]
[retry]
[docker]
endpoint = "unix:///var/run/docker.sock"
domain = <enter-domain-here>
watch = true
exposedbydefault = false
[acme]
email = <enter-email-here>
storage = "acme.json"
entryPoint = "https"
onHostRule = true
[acme.httpChallenge]
entryPoint = "http"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment