Has anybody setup nginx with websockets?
I'm wanting to do two things - setup fTelnet on my website so that I can connect to my internal BBSes (which are not directly telnetable from the internet), and
Has anybody setup nginx with websockets?
I have a similar setup already but NGINX can't help you with that (or I haven't found the proper way, but I tried NGINX and HAProxy).
I had success using websockify with fTelnet and it works very well. It's based on python.
I stumbled upon websockify, and found that somebody has created a nginx module for it. And its available in the docker hub, so it was as quick as "docker run" with a custom config file.
It also looks like it supports dynamic configuration via lua - but the docker image doesnt have the lua module in it, so I'm going to re-create it with it, then I should be able to do something like ws://host/telnet?ip=x.x.x.x&port=X&secret=Y (I think anyway). (The
secret is a dynamic password so that nobody can arbitrarily connect to
any of my internal hosts.)
Has anybody setup nginx with websockets?
proxy_pass http://videotex;
I use Caddy instead of nginx, but it shouldn't matter much. Have you checked to see that the connection is making it through the proxy/terminator (nginx)? One thing with WebSockets is the handshake requires matching 'hixie` between client and server. If it's failing
with that, you may be able to tweak either side.
I have (as a reverse proxy to a websocket server anyway).
Sysop: | echicken |
---|---|
Location: | Toronto, Ontario |
Users: | 2,224 |
Nodes: | 6 (0 / 6) |
Uptime: | 221:49:34 |
Calls: | 14,143 |
Files: | 295 |
Messages: | 551,190 |