-
-
Save adamgoose/45bccd014d9ca82c81ad36cb536c711d to your computer and use it in GitHub Desktop.
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
[backends] | |
[backends.Traefik__traefik] | |
[backends.Traefik__traefik.circuitbreaker] | |
expression = "NetworkErrorRatio() > 0.5" | |
[backends.Traefik__traefik.LoadBalancer] | |
method = "drr" | |
[backends.Traefik__traefik.servers.Traefik_traefik_1] | |
url = "http://1.1.1.1:8080" | |
weight = 0 | |
[frontends] | |
[frontends.Traefik__traefik] | |
backend = "Traefik__traefik" | |
passHostHeader = true | |
entrypoints = ["http", "https"] | |
[frontends.Traefik__traefik.routes.service] | |
rule = "Host:traefik.some.domain" |
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
################################################################ | |
# Global configuration | |
################################################################ | |
logLevel = "DEBUG" | |
defaultEntryPoints = ["http"] | |
[acme] | |
email = "foo@bar.com" | |
storageFile = "/etc/traefik/acme.json" | |
entryPoint = "https" | |
onDemand = true | |
# caServer = "https://acme-staging.api.letsencrypt.org/directory" | |
[[acme.domains]] | |
main = "some.domain" | |
[entryPoints] | |
[entryPoints.http] | |
address = ":80" | |
[entryPoints.http.redirect] | |
regex = "^http://(some.domain)/(.*)" | |
replacement = "https://$1/$2" | |
[entryPoints.https] | |
address = ":443" | |
[entryPoints.https.tls] | |
################################################################ | |
# Web configuration backend | |
################################################################ | |
[web] | |
address = ":8080" | |
# CertFile = "traefik.crt" | |
# KeyFile = "traefik.key" | |
# ReadOnly = false | |
################################################################ | |
# File configuration backend | |
################################################################ | |
[file] | |
filename = "/etc/traefik/rules.toml" | |
watch = true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment