2017-06-30 23:04:18 +00:00
|
|
|
defaultEntryPoints = ["http"]
|
|
|
|
|
|
|
|
logLevel = "DEBUG"
|
|
|
|
|
|
|
|
[entryPoints]
|
|
|
|
[entryPoints.http]
|
2018-02-23 09:52:03 +00:00
|
|
|
address = ":8080"
|
2017-06-30 23:04:18 +00:00
|
|
|
|
|
|
|
[file]
|
|
|
|
[backends]
|
|
|
|
[backends.backend1]
|
|
|
|
[backends.backend1.servers.server1]
|
|
|
|
url = "http://{{.Server1}}:80"
|
2018-04-11 14:30:04 +00:00
|
|
|
weight = 1
|
2017-06-30 23:04:18 +00:00
|
|
|
[backends.error]
|
|
|
|
[backends.error.servers.error]
|
|
|
|
url = "http://{{.Server2}}:80"
|
2018-04-11 14:30:04 +00:00
|
|
|
weight = 1
|
|
|
|
|
2017-06-30 23:04:18 +00:00
|
|
|
[frontends]
|
2018-04-11 14:30:04 +00:00
|
|
|
[frontends.frontend1]
|
|
|
|
passHostHeader = true
|
|
|
|
backend = "backend1"
|
2017-06-30 23:04:18 +00:00
|
|
|
[frontends.frontend1.routes.test_1]
|
|
|
|
rule = "Host:test.local"
|
|
|
|
[frontends.frontend1.errors]
|
2018-04-11 14:30:04 +00:00
|
|
|
[frontends.frontend1.errors.networks]
|
|
|
|
status = ["500-502", "503-599"]
|
|
|
|
backend = "error"
|
|
|
|
query = "/50x.html"
|