35 lines
722 B
TOML
35 lines
722 B
TOML
[global]
|
|
debug=true
|
|
|
|
[entrypoints]
|
|
[entrypoints.web]
|
|
address = ":8000"
|
|
|
|
[api]
|
|
|
|
[providers]
|
|
[providers.file]
|
|
|
|
[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]
|
|
[http.services.service1.LoadBalancer]
|
|
[[http.services.service1.LoadBalancer.Servers]]
|
|
URL = "{{ .Server1 }}"
|
|
Weight = 1
|
|
|
|
[http.services.service2]
|
|
[http.services.service2.LoadBalancer]
|
|
[[http.services.service2.LoadBalancer.Servers]]
|
|
URL = "{{ .Server2 }}"
|
|
Weight = 1
|