traefik/integration/fixtures/error_pages/error.toml

39 lines
808 B
TOML
Raw Permalink Normal View History

[global]
2019-07-01 09:30:05 +00:00
checkNewVersion = false
sendAnonymousUsage = false
[log]
2019-07-01 09:30:05 +00:00
level = "DEBUG"
2022-11-21 17:36:05 +00:00
noColor = true
[entryPoints]
[entryPoints.web]
2019-07-01 09:30:05 +00:00
address = ":8080"
[providers.file]
filename = "{{ .SelfFilename }}"
2019-07-01 09:30:05 +00:00
## dynamic configuration ##
2018-11-14 09:18:03 +00:00
[http.routers]
[http.routers.router1]
2019-07-01 09:30:05 +00:00
rule = "Host(`test.local`)"
service = "service1"
middlewares = ["error"]
2018-11-14 09:18:03 +00:00
[http.middlewares]
2019-07-01 09:30:05 +00:00
[http.middlewares.error.errors]
status = ["500-502", "503-599"]
service = "error"
query = "/50x.html"
2018-11-14 09:18:03 +00:00
[http.services]
2019-07-01 09:30:05 +00:00
[http.services.service1.loadBalancer]
2018-11-14 09:18:03 +00:00
passHostHeader = true
2019-07-01 09:30:05 +00:00
[[http.services.service1.loadBalancer.servers]]
url = "http://{{.Server1}}:8989474"
2018-11-14 09:18:03 +00:00
2019-07-01 09:30:05 +00:00
[http.services.error.loadBalancer]
[[http.services.error.loadBalancer.servers]]
url = "http://{{.Server2}}:80"