30 lines
542 B
TOML
30 lines
542 B
TOML
[global]
|
|
checkNewVersion = false
|
|
sendAnonymousUsage = false
|
|
|
|
[log]
|
|
logLevel = "DEBUG"
|
|
|
|
[entrypoints]
|
|
[entrypoints.web]
|
|
address = ":8000"
|
|
[entrypoints.web.proxyProtocol]
|
|
trustedIPs = ["1.2.3.4"]
|
|
|
|
[api]
|
|
|
|
[providers]
|
|
[providers.file]
|
|
|
|
[http.routers]
|
|
[http.routers.router1]
|
|
Service = "service1"
|
|
Rule = "Path(`/whoami`)"
|
|
|
|
[http.services]
|
|
[http.services.service1]
|
|
[http.services.service1.LoadBalancer]
|
|
|
|
[[http.services.service1.LoadBalancer.Servers]]
|
|
URL = "http://{{.WhoamiIP}}"
|
|
Weight = 1
|