2017-11-30 11:18:03 +00:00
|
|
|
debug=true
|
|
|
|
|
|
|
|
[entryPoints]
|
|
|
|
[entryPoints.http]
|
|
|
|
address = ":8000"
|
|
|
|
|
|
|
|
[api]
|
2018-04-11 14:30:04 +00:00
|
|
|
|
2017-11-30 11:18:03 +00:00
|
|
|
[file]
|
|
|
|
|
2018-04-11 14:30:04 +00:00
|
|
|
[backends]
|
|
|
|
[backends.backend1]
|
|
|
|
[backends.backend1.servers.server1]
|
|
|
|
url = "{{ .Server1 }}"
|
|
|
|
weight = 1
|
2017-11-30 11:18:03 +00:00
|
|
|
|
2018-04-11 14:30:04 +00:00
|
|
|
[backends.backend2]
|
|
|
|
[backends.backend2.servers.server1]
|
|
|
|
url = "{{ .Server2 }}"
|
|
|
|
weight = 1
|
2017-11-30 11:18:03 +00:00
|
|
|
|
2018-04-11 14:30:04 +00:00
|
|
|
[frontends]
|
|
|
|
[frontends.frontend1]
|
|
|
|
entrypoints=["http"]
|
|
|
|
backend = "backend1"
|
|
|
|
[frontends.frontend1.routes.test_1]
|
|
|
|
rule = "PathPrefix:/whoami"
|
2017-11-30 11:18:03 +00:00
|
|
|
|
2018-04-11 14:30:04 +00:00
|
|
|
[frontends.frontend2]
|
|
|
|
backend = "backend2"
|
|
|
|
entrypoints=["traefik"]
|
|
|
|
[frontends.frontend2.routes.test_1]
|
|
|
|
rule = "PathPrefix:/whoami"
|