2019-09-13 18:00:06 +00:00
|
|
|
[global]
|
|
|
|
checkNewVersion = false
|
|
|
|
sendAnonymousUsage = false
|
|
|
|
|
|
|
|
[log]
|
|
|
|
level = "DEBUG"
|
|
|
|
|
|
|
|
[entryPoints]
|
|
|
|
[entryPoints.tcp]
|
|
|
|
address = ":8093"
|
|
|
|
|
|
|
|
[api]
|
|
|
|
insecure = true
|
|
|
|
|
|
|
|
[providers.file]
|
|
|
|
filename = "{{ .SelfFilename }}"
|
|
|
|
|
|
|
|
## dynamic configuration ##
|
|
|
|
[tcp]
|
|
|
|
[tcp.routers]
|
2021-11-25 10:10:06 +00:00
|
|
|
[tcp.routers.to-whoami-b]
|
|
|
|
rule = "HostSNI(`whoami-b.test`)"
|
2019-09-13 18:00:06 +00:00
|
|
|
service = "whoami"
|
|
|
|
entryPoints = [ "tcp" ]
|
2021-11-25 10:10:06 +00:00
|
|
|
[tcp.routers.to-whoami-b.tls]
|
2019-09-13 18:00:06 +00:00
|
|
|
passthrough=true
|
|
|
|
|
|
|
|
[[tcp.services.whoami.weighted.services]]
|
2021-11-25 10:10:06 +00:00
|
|
|
name="whoami-b"
|
2019-09-13 18:00:06 +00:00
|
|
|
weight=3
|
|
|
|
[[tcp.services.whoami.weighted.services]]
|
2021-11-25 10:10:06 +00:00
|
|
|
name="whoami-ab"
|
2019-09-13 18:00:06 +00:00
|
|
|
weight=1
|
|
|
|
|
|
|
|
[tcp.services.whoami-b.loadBalancer]
|
|
|
|
[[tcp.services.whoami-b.loadBalancer.servers]]
|
2022-07-13 16:32:08 +00:00
|
|
|
address = "{{ .WhoamiB }}"
|
2019-09-13 18:00:06 +00:00
|
|
|
|
2021-11-25 10:10:06 +00:00
|
|
|
[tcp.services.whoami-ab.loadBalancer]
|
|
|
|
[[tcp.services.whoami-ab.loadBalancer.servers]]
|
2022-07-13 16:32:08 +00:00
|
|
|
address = "{{ .WhoamiAB }}"
|