Skip to content

Instantly share code, notes, and snippets.

@adamgoose
Created June 15, 2016 09:37
Show Gist options
  • Save adamgoose/45bccd014d9ca82c81ad36cb536c711d to your computer and use it in GitHub Desktop.
Save adamgoose/45bccd014d9ca82c81ad36cb536c711d to your computer and use it in GitHub Desktop.
[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"
################################################################
# 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