Would it be possible to distinguish where to upstream based on request. While http requests have GET, POST etc... SSH has SSH-xxxxxxxxx identifier ?by alen.loncaric - How to...
I saw this example: stream { upstream http { server localhost:8000; } upstream https { server localhost:8001; } map $ssl_preread_protocol $upstream { default https; "" http; } server { listen 8080; listen [::]:8080; proxy_pass $upstream; ssl_preread on; } } Why thisby alen.loncaric - How to...
Hi guys, I saw examples of combining HTTPS/SSH Selecting an upstream based on SSL protocol version: map $ssl_preread_protocol $upstream { default ssh.example.com:22; "TLSv1.2" new.example.com:443; } # ssh and https on the same port server { listen 192.168.0.1:443; proxy_pass $upstream; ssl_preread on; } But i don't know how to combine SSH,by alen.loncaric - How to...