I've configure SSH routing like this:
tcp:
routers:
my_ssh:
entrypoints:
- my-ssh
rule: "HostSNI(`*`)"
service: my-ssh
services:
joe-ssh:
loadBalancer:
servers:
- address: 10.0.0.1:22
Here is how I configure stuff:
http:
routers:
router_http:
entrypoints:
- http
rule: "Host(`joe.example.com`)"
service: joe
middlewares:
- https-redirect
jira_https:
entrypoints:
- https
rule: "Host(`joe.example.com`)"
service: joe
tls: {}
services:
joe:
loadBalancer:
servers:
- url: http://10.0.0.1:8080
middlewares:
https-redirect:
redirectScheme:
scheme: https
permanent: true
Entrypoints:
entryPoints:
http:
address: ":80"
https:
address: ":443"
my-ssh:
address: ":7999"
And after this https redirect and dashboard are broken. Showing this:
SSH-2.0-APACHE-SSHD-2.2.0
Unsupported protocol version: GET / HTTP/1.1
Which means that requests are being routed to the SSH port I suppose.
How could I keep everything working and route SSH trafic?