Skip to content

Instantly share code, notes, and snippets.

@michiels
Created November 14, 2018 00:19
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 michiels/17a9e4d07b750c97b3c42b870a13369b to your computer and use it in GitHub Desktop.
Save michiels/17a9e4d07b750c97b3c42b870a13369b to your computer and use it in GitHub Desktop.
Simple Traefik routing configuration with LetsEncryot termination
[file]
# Backends
[backends]
[backends.backend1]
[backends.backend1.servers]
[backends.backend1.servers.server1]
url = "https://167.99.19.114:443"
weight = 1
# Frontends
[frontends]
[frontends.frontend1]
entryPoints = ["http", "https"]
backend = "backend1"
passHostHeader = true
[frontends.frontend1.routes]
[frontends.frontend1.routes.route0]
rule = "Host:traefik.firmhouse.com"
defaultEntryPoints = ["http", "https"]
debug = true
logLevel = "DEBUG"
insecureSkipVerify = true
[accessLog]
filePath = "/logs/access.log"
[entryPoints]
[entryPoints.http]
address = ":80"
[entryPoints.http.redirect]
entryPoint = "https"
[entryPoints.https]
address = ":443"
[entryPoints.https.tls]
[acme]
email = "operations@example.com"
storage = "acme.json"
entryPoint = "https"
[acme.httpChallenge]
entryPoint = "http"
[file]
directory = "/config"
watch = true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment