traefik/integration/fixtures/error_pages/simple.toml

38 lines
791 B
TOML
Raw Normal View History

[global]
checkNewVersion = false
sendAnonymousUsage = false
[log]
level = "DEBUG"
[entryPoints]
[entryPoints.web]
address = ":8080"
[providers]
[providers.file]
2018-11-14 09:18:03 +00:00
[http.routers]
[http.routers.router1]
Rule = "Host(`test.local`)"
service = "service1"
middlewares = ["error"]
2018-11-14 09:18:03 +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"
[http.services]
[http.services.service1.loadbalancer]
2018-11-14 09:18:03 +00:00
passHostHeader = true
[[http.services.service1.loadbalancer.servers]]
2018-11-14 09:18:03 +00:00
url = "http://{{.Server1}}:80"
weight = 1
[http.services.error.loadbalancer]
[[http.services.error.loadbalancer.servers]]
2018-11-14 09:18:03 +00:00
url = "http://{{.Server2}}:80"
weight = 1