32 lines
621 B
TOML
32 lines
621 B
TOML
[log]
|
|
logLevel = "DEBUG"
|
|
|
|
[entrypoints]
|
|
[entrypoints.web]
|
|
address = ":8000"
|
|
|
|
[api]
|
|
|
|
[providers]
|
|
[providers.file]
|
|
|
|
[http.routers]
|
|
[http.routers.router1]
|
|
Service = "service1"
|
|
Middlewares = [ "retry" ]
|
|
Rule = "PathPrefix(`/`)"
|
|
|
|
[http.middlewares.retry.Retry]
|
|
Attempts = 3
|
|
|
|
[http.services]
|
|
[http.services.service1]
|
|
[http.services.service1.LoadBalancer]
|
|
|
|
[[http.services.service1.LoadBalancer.Servers]]
|
|
URL = "http://{{.WhoamiEndpoint}}:8080"
|
|
Weight = 1
|
|
|
|
[[http.services.service1.LoadBalancer.Servers]]
|
|
URL = "http://{{.WhoamiEndpoint}}:80"
|
|
Weight = 1
|