2018-11-27 16:42:04 +00:00
|
|
|
[log]
|
2017-10-30 09:02:03 +00:00
|
|
|
logLevel = "DEBUG"
|
|
|
|
|
|
|
|
[entryPoints]
|
2018-04-11 14:30:04 +00:00
|
|
|
[entryPoints.http]
|
2018-11-14 09:18:03 +00:00
|
|
|
address = ":8000"
|
2018-04-11 14:30:04 +00:00
|
|
|
[entryPoints.http.proxyProtocol]
|
2018-11-14 09:18:03 +00:00
|
|
|
trustedIPs = ["{{.HaproxyIP}}"]
|
2017-10-30 09:02:03 +00:00
|
|
|
|
2018-01-11 08:46:03 +00:00
|
|
|
[api]
|
2017-10-30 09:02:03 +00:00
|
|
|
|
2018-11-27 16:42:04 +00:00
|
|
|
[providers]
|
|
|
|
[providers.file]
|
2017-10-30 09:02:03 +00:00
|
|
|
|
2018-11-14 09:18:03 +00:00
|
|
|
[Routers]
|
|
|
|
[Routers.router1]
|
|
|
|
Service = "service1"
|
|
|
|
Rule = "Path:/whoami"
|
2017-10-30 09:02:03 +00:00
|
|
|
|
2018-11-14 09:18:03 +00:00
|
|
|
[Services]
|
|
|
|
[Services.service1]
|
|
|
|
[Services.service1.LoadBalancer]
|
|
|
|
|
|
|
|
[[Services.service1.LoadBalancer.Servers]]
|
|
|
|
URL = "http://{{.WhoamiIP}}"
|
|
|
|
Weight = 1
|