Skip to content

Instantly share code, notes, and snippets.

@dascenciohz
Created October 23, 2019 18:23
Show Gist options
  • Save dascenciohz/5f11cb1cae72c9a9055f99ea3d7b5640 to your computer and use it in GitHub Desktop.
Save dascenciohz/5f11cb1cae72c9a9055f99ea3d7b5640 to your computer and use it in GitHub Desktop.
Traefik Config File
debug = false
logLevel = "ERROR"
defaultEntryPoints = ["http", "https"]
[traefikLog]
format = "json"
[accessLog]
format = "json"
[entryPoints]
[entryPoints.dashboard]
address = ":8080"
[entryPoints.dashboard.auth]
[entryPoints.dashboard.auth.basic]
users = ["user:blablablablablabla"]
[entryPoints.http]
address = ":80"
[entryPoints.http.redirect]
entrypoint = "https"
[entryPoints.https]
address = ":443"
[entryPoints.https.tls]
[api]
entrypoint="dashboard"
[docker]
endpoint = "unix:///var/run/docker.sock"
domain = "docker.localhost"
exposedByDefault = false
[acme]
email = "myaccount@mydomain.com"
storage = "/acme/certs.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