2019-06-07 17:30:07 +00:00
|
|
|
[global]
|
2019-07-01 09:30:05 +00:00
|
|
|
checkNewVersion = false
|
|
|
|
sendAnonymousUsage = false
|
2019-06-07 17:30:07 +00:00
|
|
|
|
|
|
|
[log]
|
2019-07-01 09:30:05 +00:00
|
|
|
level = "DEBUG"
|
2019-06-07 17:30:07 +00:00
|
|
|
|
|
|
|
[entryPoints]
|
|
|
|
[entryPoints.tcp]
|
|
|
|
address = ":8093"
|
|
|
|
|
|
|
|
[api]
|
|
|
|
|
|
|
|
[providers.file]
|
2019-07-15 08:22:03 +00:00
|
|
|
filename = "{{ .SelfFilename }}"
|
2019-06-07 17:30:07 +00:00
|
|
|
|
2019-07-01 09:30:05 +00:00
|
|
|
## dynamic configuration ##
|
|
|
|
|
2019-06-07 17:30:07 +00:00
|
|
|
[tcp]
|
2019-07-01 09:30:05 +00:00
|
|
|
[tcp.routers]
|
|
|
|
[tcp.routers.to-whoami-no-tls]
|
|
|
|
entryPoints = ["tcp"]
|
|
|
|
rule = "HostSNI(`*`)"
|
|
|
|
service = "whoami-no-tls"
|
2019-06-07 17:30:07 +00:00
|
|
|
|
2019-07-01 09:30:05 +00:00
|
|
|
[tcp.services]
|
|
|
|
[tcp.services.whoami-no-tls.loadBalancer]
|
|
|
|
[[tcp.services.whoami-no-tls.loadBalancer.servers]]
|
|
|
|
address = "localhost:8086"
|
2019-06-07 17:30:07 +00:00
|
|
|
|
|
|
|
[http]
|
2019-07-01 09:30:05 +00:00
|
|
|
[http.routers]
|
|
|
|
[http.routers.to-whoami]
|
|
|
|
entryPoints = ["tcp"]
|
|
|
|
rule="PathPrefix(`/`)"
|
|
|
|
service = "whoami"
|
|
|
|
[http.routers.to-whoami.tls]
|
|
|
|
|
|
|
|
[http.services]
|
|
|
|
[http.services.whoami.loadBalancer]
|
|
|
|
[[http.services.whoami.loadBalancer.servers]]
|
|
|
|
url = "http://localhost:8085"
|