Skip to content

Instantly share code, notes, and snippets.

@neilbartley
Created October 21, 2018 11:18
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 neilbartley/b34aa33eaf04932a85c804c0ac7f122b to your computer and use it in GitHub Desktop.
Save neilbartley/b34aa33eaf04932a85c804c0ac7f122b to your computer and use it in GitHub Desktop.
Calming App Jams with Træfik - traefik.toml
debug = false
logLevel = "ERROR"
defaultEntryPoints = ["https", "http"]
# https://docs.traefik.io/configuration/entrypoints/
[entryPoints]
[entryPoints.http]
address = ":80"
[entryPoints.http.redirect] # https://docs.traefik.io/configuration/entrypoints/#redirect-http-to-https
entryPoint = "https"
[entryPoints.https]
address = ":443"
[entryPoints.https.tls]
[entryPoints.dashboard]
address = ":8080"
[entryPoints.dashboard.auth]
[entryPoints.dashboard.auth.basic] # https://docs.traefik.io/configuration/entrypoints/#basic-authentication
users = ["admin:$wibble"]
[retry]
# https://docs.traefik.io/configuration/backends/docker/
[docker]
swarmMode = true
watch = true
exposedByDefault = false
# https://docs.traefik.io/configuration/acme/
[acme]
email = "neil.bartley@flexmr.org"
storage = "acme.json"
entryPoint = "https"
onHostRule = true
[acme.httpChallenge]
entryPoint = "http"
# https://docs.traefik.io/configuration/api/
[api]
dashboard = true
entrypoint = "dashboard"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment