Skip to content

Instantly share code, notes, and snippets.

@michiels

michiels/rules.toml

Created Nov 14, 2018
Embed
What would you like to do?
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