28 lines
544 B
TOML
28 lines
544 B
TOML
[log]
|
|
logLevel = "DEBUG"
|
|
|
|
[entrypoints]
|
|
[entrypoints.web]
|
|
address = ":8000"
|
|
|
|
[api]
|
|
|
|
[providers]
|
|
[providers.file]
|
|
|
|
[http.routers]
|
|
[http.routers.router1]
|
|
service = "service1"
|
|
Rule = "Host(`test.localhost`)"
|
|
|
|
[http.services]
|
|
[http.services.service1.loadbalancer]
|
|
method = "drr"
|
|
[http.services.service1.loadbalancer.healthcheck]
|
|
path = "/health"
|
|
port = 80
|
|
interval = "1s"
|
|
timeout = "0.9s"
|
|
[[http.services.service1.loadbalancer.servers]]
|
|
url = "http://{{.Server1}}:81"
|
|
weight = 1
|