traefik/integration/fixtures/simple_stats.toml
SALLEYRON Julien 9ebe3c38b2 New rule syntax
Co-authored-by: jbdoumenjou <jb.doumenjou@gmail.com>
2019-01-30 16:24:07 +01:00

35 lines
674 B
TOML

[global]
debug=true
[entryPoints]
[entryPoints.http]
address = ":8000"
[api]
[providers]
[providers.file]
[Routers]
[Routers.router1]
EntryPoints = ["http"]
Service = "service1"
Rule = "PathPrefix(`/whoami`)"
[Routers.router2]
EntryPoints = ["traefik"]
Service = "service2"
Rule = "PathPrefix(`/whoami`)"
[Services]
[Services.service1]
[Services.service1.LoadBalancer]
[[Services.service1.LoadBalancer.Servers]]
URL = "{{ .Server1 }}"
Weight = 1
[Services.service2]
[Services.service2.LoadBalancer]
[[Services.service2.LoadBalancer.Servers]]
URL = "{{ .Server2 }}"
Weight = 1