2018-11-27 16:42:04 +00:00
|
|
|
[log]
|
2018-01-26 17:22:03 +00:00
|
|
|
logLevel = "DEBUG"
|
|
|
|
|
2019-03-14 08:30:04 +00:00
|
|
|
[entrypoints]
|
|
|
|
[entrypoints.web]
|
2018-01-26 17:22:03 +00:00
|
|
|
address = ":8000"
|
|
|
|
|
|
|
|
[api]
|
|
|
|
|
2018-11-27 16:42:04 +00:00
|
|
|
[providers]
|
|
|
|
[providers.file]
|
2018-11-14 09:18:03 +00:00
|
|
|
|
2019-03-14 08:30:04 +00:00
|
|
|
[http.routers]
|
|
|
|
[http.routers.router1]
|
2018-11-14 09:18:03 +00:00
|
|
|
Service = "service1"
|
|
|
|
Middlewares = [ "retry" ]
|
2019-01-30 15:24:07 +00:00
|
|
|
Rule = "PathPrefix(`/`)"
|
2018-11-14 09:18:03 +00:00
|
|
|
|
2019-03-14 08:30:04 +00:00
|
|
|
[http.middlewares.retry.Retry]
|
2018-11-27 16:42:04 +00:00
|
|
|
Attempts = 3
|
2018-11-14 09:18:03 +00:00
|
|
|
|
2019-03-14 08:30:04 +00:00
|
|
|
[http.services]
|
|
|
|
[http.services.service1]
|
|
|
|
[http.services.service1.LoadBalancer]
|
2018-11-14 09:18:03 +00:00
|
|
|
|
2019-03-14 08:30:04 +00:00
|
|
|
[[http.services.service1.LoadBalancer.Servers]]
|
2018-11-14 09:18:03 +00:00
|
|
|
URL = "http://{{.WhoamiEndpoint}}:8080"
|
|
|
|
Weight = 1
|
|
|
|
|
2019-03-14 08:30:04 +00:00
|
|
|
[[http.services.service1.LoadBalancer.Servers]]
|
2018-11-14 09:18:03 +00:00
|
|
|
URL = "http://{{.WhoamiEndpoint}}:80"
|
|
|
|
Weight = 1
|