Skip to content

Instantly share code, notes, and snippets.

@dniel
Created May 9, 2019 07:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dniel/e1f00ca885c5eea2c6ece821c555ad84 to your computer and use it in GitHub Desktop.
Save dniel/e1f00ca885c5eea2c6ece821c555ad84 to your computer and use it in GitHub Desktop.
TCP/SSL passthrough with traefik 2.0 and file provider
[Global]
Debug = true
CheckNewVersion = false
SendAnonymousUsage = false
[entrypoints]
[entrypoints.https]
address = ":443"
[API]
Dashboard = true
[API.Statistics]
RecentErrors = 42
[providers.file]
[http]
[tcp.routers]
[tcp.routers.Router-1]
entryPoints = ["https"]
rule = "HostSNI(`*`)"
service = "my-service"
[tcp.routers.Router-1.tls]
passthrough=true
[tcp.services]
[tcp.services.my-service.LoadBalancer]
[[tcp.services.my-service.LoadBalancer.servers]]
address = "xxx:31443"
[[tcp.services.my-service.LoadBalancer.servers]]
address = "xxx:31443"
[[tcp.services.my-service.LoadBalancer.servers]]
address = "xxx:31443"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment