2019-08-26 08:30:05 +00:00
|
|
|
[global]
|
|
|
|
checkNewVersion = false
|
|
|
|
sendAnonymousUsage = false
|
|
|
|
|
|
|
|
[api]
|
2019-09-06 13:08:04 +00:00
|
|
|
insecure = true
|
2019-08-26 08:30:05 +00:00
|
|
|
|
|
|
|
[log]
|
|
|
|
level = "DEBUG"
|
|
|
|
|
|
|
|
[entryPoints]
|
|
|
|
|
|
|
|
[entryPoints.web]
|
|
|
|
address = ":8000"
|
|
|
|
|
|
|
|
[providers.file]
|
|
|
|
filename = "{{ .SelfFilename }}"
|
|
|
|
|
|
|
|
## dynamic configuration ##
|
|
|
|
|
|
|
|
[http.routers]
|
|
|
|
[http.routers.router]
|
|
|
|
service = "wrr"
|
|
|
|
rule = "Path(`/whoami`)"
|
|
|
|
|
|
|
|
[http.services]
|
|
|
|
[http.services.wrr.weighted.sticky.cookie]
|
|
|
|
name = "test"
|
|
|
|
|
|
|
|
[[http.services.wrr.weighted.services]]
|
|
|
|
name = "service1"
|
|
|
|
weight = 3
|
|
|
|
[[http.services.wrr.weighted.services]]
|
|
|
|
name = "service2"
|
|
|
|
weight = 1
|
|
|
|
|
|
|
|
[http.services.service1.loadBalancer]
|
|
|
|
[[http.services.service1.loadBalancer.servers]]
|
|
|
|
url = "{{ .Server1 }}"
|
|
|
|
[http.services.service2.loadBalancer]
|
|
|
|
[[http.services.service2.loadBalancer.servers]]
|
|
|
|
url = "{{ .Server2 }}"
|