2019-07-15 15:04:04 +00:00
|
|
|
[global]
|
|
|
|
checkNewVersion = false
|
|
|
|
sendAnonymousUsage = false
|
|
|
|
|
|
|
|
[log]
|
|
|
|
level = "DEBUG"
|
|
|
|
|
|
|
|
[entryPoints]
|
2020-01-23 15:36:08 +00:00
|
|
|
[entryPoints.websecure]
|
2019-07-15 15:04:04 +00:00
|
|
|
address = ":4443"
|
2020-02-11 00:26:04 +00:00
|
|
|
[entryPoints.udp]
|
|
|
|
address = ":4443/udp"
|
2019-07-15 15:04:04 +00:00
|
|
|
|
|
|
|
[api]
|
2019-09-06 13:08:04 +00:00
|
|
|
insecure = true
|
2019-07-15 15:04:04 +00:00
|
|
|
|
|
|
|
[providers.file]
|
|
|
|
filename = "{{ .SelfFilename }}"
|
|
|
|
|
|
|
|
## dynamic configuration ##
|
|
|
|
|
|
|
|
[http.routers]
|
2020-02-17 17:02:04 +00:00
|
|
|
[http.routers.router1]
|
2019-07-15 15:04:04 +00:00
|
|
|
service = "service1"
|
|
|
|
rule = "Host(`snitest.net`)"
|
|
|
|
|
2020-02-17 17:02:04 +00:00
|
|
|
[http.routers.router2]
|
2019-07-15 15:04:04 +00:00
|
|
|
service = "service2"
|
|
|
|
rule = "Host(`snitest.com`)"
|
|
|
|
|
|
|
|
[http.services]
|
|
|
|
[http.services.service1]
|
|
|
|
|
|
|
|
[http.services.service2]
|
|
|
|
[http.services.service2.loadBalancer]
|
|
|
|
[[http.services.service2.loadBalancer.servers]]
|
2020-02-17 17:02:04 +00:00
|
|
|
url = "http://127.0.0.1:9010"
|