traefik/integration/fixtures/tcp/mixed.toml

73 lines
1.7 KiB
TOML
Raw Normal View History

[global]
2019-07-01 09:30:05 +00:00
checkNewVersion = false
sendAnonymousUsage = false
[log]
2019-07-01 09:30:05 +00:00
level = "DEBUG"
[entryPoints]
[entryPoints.tcp]
address = ":8093"
[api]
[providers.file]
filename = "{{ .SelfFilename }}"
2019-07-01 09:30:05 +00:00
## dynamic configuration ##
2019-07-01 09:30:05 +00:00
[http]
[http.routers]
[http.routers.my-router]
rule = "Path(`/test`)"
service = "whoami"
entrypoint=["tcp"]
[http.routers.my-https-router]
2019-07-01 09:30:05 +00:00
entryPoints=["tcp"]
rule = "Path(`/whoami/`)"
service = "whoami"
[http.routers.my-https-router.tls]
2019-07-01 09:30:05 +00:00
[http.services]
[http.services.whoami.loadBalancer]
[[http.services.whoami.loadBalancer.servers]]
url = "http://localhost:8085"
[tcp]
2019-07-01 09:30:05 +00:00
[tcp.routers]
[tcp.routers.to-whoami-a]
rule = "HostSNI(`whoami-a.test`)"
service = "whoami-a"
entryPoints = [ "tcp" ]
[tcp.routers.to-whoami-a.tls]
passthrough=true
2019-07-01 09:30:05 +00:00
[tcp.routers.to-whoami-b]
rule = "HostSNI(`whoami-b.test`)"
service = "whoami-b"
entryPoints = [ "tcp" ]
[tcp.routers.to-whoami-b.tls]
passthrough=true
2019-07-01 09:30:05 +00:00
[tcp.routers.to-whoami-no-cert]
rule = "HostSNI(`whoami-c.test`)"
service = "whoami-no-cert"
entryPoints = [ "tcp" ]
[tcp.routers.to-whoami-no-cert.tls]
2019-07-01 09:30:05 +00:00
[tcp.services.whoami-a.loadBalancer]
[[tcp.services.whoami-a.loadBalancer.servers]]
address = "localhost:8081"
2019-07-01 09:30:05 +00:00
[tcp.services.whoami-b.loadBalancer]
[[tcp.services.whoami-b.loadBalancer.servers]]
address = "localhost:8082"
2019-07-01 09:30:05 +00:00
[tcp.services.whoami-no-cert.loadBalancer]
[[tcp.services.whoami-no-cert.loadBalancer.servers]]
address = "localhost:8083"
[[tls.certificates]]
certFile = "fixtures/tcp/whoami-c.crt"
keyFile = "fixtures/tcp/whoami-c.key"