2018-11-27 16:42:04 +00:00
|
|
|
[log]
|
2017-06-30 23:04:18 +00:00
|
|
|
logLevel = "DEBUG"
|
|
|
|
|
2019-03-14 08:30:04 +00:00
|
|
|
[entrypoints]
|
|
|
|
[entrypoints.web]
|
2018-02-23 09:52:03 +00:00
|
|
|
address = ":8080"
|
2017-06-30 23:04:18 +00:00
|
|
|
|
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]
|
2019-01-30 15:24:07 +00:00
|
|
|
Rule = "Host(`test.local`)"
|
2019-01-21 18:06:02 +00:00
|
|
|
service = "service1"
|
|
|
|
middlewares = ["error"]
|
2018-11-14 09:18:03 +00:00
|
|
|
|
2019-03-14 08:30:04 +00:00
|
|
|
[http.middlewares]
|
|
|
|
[http.middlewares.error.errors]
|
2018-11-14 09:18:03 +00:00
|
|
|
status = ["500-502", "503-599"]
|
|
|
|
service = "error"
|
|
|
|
query = "/50x.html"
|
|
|
|
|
2019-03-14 08:30:04 +00:00
|
|
|
[http.services]
|
|
|
|
[http.services.service1.loadbalancer]
|
2018-11-14 09:18:03 +00:00
|
|
|
passHostHeader = true
|
2019-03-14 08:30:04 +00:00
|
|
|
[[http.services.service1.loadbalancer.servers]]
|
2018-11-14 09:18:03 +00:00
|
|
|
url = "http://{{.Server1}}:8989474"
|
|
|
|
weight = 1
|
|
|
|
|
2019-03-14 08:30:04 +00:00
|
|
|
[http.services.error.loadbalancer]
|
|
|
|
[[http.services.error.loadbalancer.servers]]
|
2018-11-14 09:18:03 +00:00
|
|
|
url = "http://{{.Server2}}:80"
|
|
|
|
weight = 1
|