Created
November 14, 2018 00:19
-
-
Save michiels/17a9e4d07b750c97b3c42b870a13369b to your computer and use it in GitHub Desktop.
Simple Traefik routing configuration with LetsEncryot termination
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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