36 lines
679 B
TOML
36 lines
679 B
TOML
[global]
|
|
checkNewVersion = false
|
|
sendAnonymousUsage = false
|
|
|
|
[log]
|
|
level = "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
|