43 lines
786 B
TOML
43 lines
786 B
TOML
[log]
|
|
logLevel = "DEBUG"
|
|
|
|
|
|
[serversTransport.forwardingTimeouts]
|
|
dialTimeout = "300ms"
|
|
responseHeaderTimeout = "300ms"
|
|
|
|
|
|
[entryPoints]
|
|
[entryPoints.http]
|
|
address = ":8000"
|
|
|
|
[accessLog]
|
|
format = "json"
|
|
|
|
[api]
|
|
|
|
|
|
[providers]
|
|
[providers.file]
|
|
|
|
[Routers]
|
|
[Routers.router1]
|
|
Service = "service1"
|
|
Rule = "Path(`/dialTimeout`)"
|
|
|
|
[Routers.router2]
|
|
Service = "service2"
|
|
Rule = "Path(`/responseHeaderTimeout`)"
|
|
|
|
[Services]
|
|
[Services.service1]
|
|
[Services.service1.LoadBalancer]
|
|
[[Services.service1.LoadBalancer.Servers]]
|
|
URL = "http://50.255.255.1"
|
|
Weight = 1
|
|
|
|
[Services.service2]
|
|
[Services.service2.LoadBalancer]
|
|
[[Services.service2.LoadBalancer.Servers]]
|
|
URL = "http://{{.TimeoutEndpoint}}:9000"
|
|
Weight = 1
|