traefik/integration/fixtures/file/simple.toml

47 lines
1.1 KiB
TOML
Raw Normal View History

[global]
checkNewVersion = false
sendAnonymousUsage = false
[log]
logLevel = "DEBUG"
2016-02-01 10:07:05 +00:00
[entryPoints]
[entryPoints.web]
2018-11-14 09:18:03 +00:00
address = ":8000"
2016-02-01 10:07:05 +00:00
[providers]
[providers.file]
[http.routers]
[http.routers.router1]
rule = "Host(`test.localhost`)"
2018-11-14 09:18:03 +00:00
service = "service2"
[http.routers.router2]
rule = "Path(`/test`)"
2018-11-14 09:18:03 +00:00
middlewares = ["circuitbreaker"]
service = "service1"
[http.middlewares]
[http.middlewares.circuitbreaker.circuitbreaker]
2018-11-14 09:18:03 +00:00
expression = "NetworkErrorRatio() > 0.5"
[http.services]
[http.services.service1.loadbalancer]
[[http.services.service1.loadbalancer.servers]]
2018-11-14 09:18:03 +00:00
url = "http://172.17.0.2:80"
weight = 10
[[http.services.service1.loadbalancer.servers]]
2018-11-14 09:18:03 +00:00
url = "http://172.17.0.3:80"
weight = 1
[http.services.service2]
[http.services.service2.loadbalancer]
2018-11-14 09:18:03 +00:00
method = "drr"
[[http.services.service2.loadbalancer.servers]]
2018-11-14 09:18:03 +00:00
url = "http://172.17.0.4:80"
weight = 1
[[http.services.service2.loadbalancer.servers]]
2018-11-14 09:18:03 +00:00
url = "http://172.17.0.5:80"
weight = 2