2020-02-17 17:02:04 +00:00
|
|
|
[global]
|
|
|
|
checkNewVersion = false
|
|
|
|
sendAnonymousUsage = false
|
|
|
|
|
|
|
|
[log]
|
|
|
|
level = "DEBUG"
|
2022-11-21 17:36:05 +00:00
|
|
|
noColor = true
|
2020-02-17 17:02:04 +00:00
|
|
|
|
|
|
|
[entryPoints]
|
|
|
|
[entryPoints.websecure]
|
|
|
|
address = ":4443"
|
|
|
|
[entryPoints.udp]
|
|
|
|
address = ":4443/udp"
|
|
|
|
|
|
|
|
[api]
|
|
|
|
insecure = true
|
|
|
|
|
|
|
|
[providers.file]
|
|
|
|
filename = "{{ .SelfFilename }}"
|
|
|
|
|
|
|
|
## dynamic configuration ##
|
|
|
|
|
|
|
|
[tcp.routers]
|
|
|
|
[tcp.routers.router1]
|
|
|
|
service = "service1"
|
|
|
|
rule = "HostSNI(`snitest.net`)"
|
|
|
|
|
|
|
|
[tcp.routers.router2]
|
|
|
|
service = "service2"
|
|
|
|
rule = "HostSNI(`snitest.com`)"
|
|
|
|
|
|
|
|
[tcp.services]
|
|
|
|
[tcp.services.service1]
|
|
|
|
|
|
|
|
[tcp.services.service2]
|
|
|
|
[tcp.services.service2.loadBalancer]
|
|
|
|
[[tcp.services.service2.loadBalancer.servers]]
|
|
|
|
address = "127.0.0.1:9010"
|