2018-01-26 17:22:03 +00:00
|
|
|
defaultEntryPoints = ["http"]
|
|
|
|
|
|
|
|
logLevel = "DEBUG"
|
|
|
|
|
|
|
|
[entryPoints]
|
|
|
|
[entryPoints.http]
|
|
|
|
address = ":8000"
|
|
|
|
|
|
|
|
[api]
|
|
|
|
|
|
|
|
[retry]
|
|
|
|
|
|
|
|
[file]
|
|
|
|
[backends]
|
|
|
|
[backends.backend1]
|
|
|
|
[backends.backend1.servers.server1]
|
|
|
|
url = "http://{{.WhoamiEndpoint}}:8080" # not valid
|
2018-04-11 14:30:04 +00:00
|
|
|
weight = 1
|
2018-01-26 17:22:03 +00:00
|
|
|
[backends.backend1.servers.server2]
|
|
|
|
url = "http://{{.WhoamiEndpoint}}:80"
|
2018-04-11 14:30:04 +00:00
|
|
|
weight = 1
|
2018-01-26 17:22:03 +00:00
|
|
|
|
|
|
|
[frontends]
|
|
|
|
[frontends.frontend1]
|
|
|
|
backend = "backend1"
|
|
|
|
[frontends.frontend1.routes.test_1]
|
|
|
|
rule = "PathPrefix:/"
|