traefik/integration/fixtures/simple_stats.toml
2019-07-15 10:22:03 +02:00

37 lines
738 B
TOML

[global]
checkNewVersion = false
sendAnonymousUsage = false
[log]
level = "DEBUG"
[entryPoints]
[entryPoints.web]
address = ":8000"
[api]
[providers.file]
filename = "{{ .SelfFilename }}"
## dynamic configuration ##
[http.routers]
[http.routers.router1]
entryPoints = ["web"]
service = "service1"
rule = "PathPrefix(`/whoami`)"
[http.routers.router2]
entryPoints = ["traefik"]
service = "service2"
rule = "PathPrefix(`/whoami`)"
[http.services]
[http.services.service1.loadBalancer]
[[http.services.service1.loadBalancer.servers]]
url = "{{ .Server1 }}"
[http.services.service2.loadBalancer]
[[http.services.service2.loadBalancer.servers]]
url = "{{ .Server2 }}"