Okay, you should set nginx up act as a reverse proxy for websocket as well. IIRC the config stanza will be pretty much identical to the one you're already using for HTTPS -> Synchronet HTTP, except that you'll want something like:
listen 1124 ssl;
and:
location / {
proxy_pass http://localhost:1123;
...
}
I am in the beginnings of setting up my BBS. One issue I am having is theweb based telnet client
isn't working behind my reverse proxy.
I am in the beginnings of setting up my BBS. One issue I am having is the web based telnet client isn't working behind my reverse proxy.
First off, this page probably holds no answers for you, however since I don't know how familiar you are with ftelnet and how it works, please review:
https://github.com/echicken/synchronet-web-v4/wiki/ftelnet
What are you using as a reverse proxy?
Is your reverse proxy providing TLS and talking to Synchronet in the clear locally, or are you using Synchronet's Let's Encrypt & HTTPS support?
Is your reverse proxy listening on port 11235 and then forwardinginternally
to WSS? What (if any) configuration have you done re: certs for this?
clearWhat are you using as a reverse proxy?
NGINX
Yes, reverse proxy is providing TLS and talking to Synchronet in the
No, I don't have it listening on 11235, just on 80 and 443. I haven'tdone any configuration for
certs in Synchronet at all, just in NGINX. I'm guessing this is theproblem. Can I have NGINX proxy
ftelnet, or should I look into Synchronet's Let's Encrypt support?
What are you using as a reverse proxy?
Is your reverse proxy providing TLS and talking to Synchronet in the clear locally, or are you using Synchronet's Let's Encrypt & HTTPS support?
Is your reverse proxy listening on port 11235 and then forwarding internally to WSS? What (if any) configuration have you done re: certs for this?
No, It's not - I am just using 443. To go back to what you originallysaid,
I'm not familiar with ftelnet at all and I need to look at that. Thisgets me
pointed in the right direction, thank you!!!
Okay, you should set nginx up act as a reverse proxy for websocket as well. IIRC the config stanza will be pretty much identical to the one you're already using for HTTPS -> Synchronet HTTP, except that you'll want something like:
listen 1124 ssl;
and:
location / {
proxy_pass http://localhost:1123;
...
}
Mind that in the above, nginx will then be listening on port 1124, and forwarding to port 1123. You'll then want to set [WS] in ctrl/services.ini to listen on port 1123. You can delete or comment out the [WSS] section.
You'll also want to edit the [web] section in ctrl/modopts.ini and add or edit the following key/value:
wssp = 1124
Reload nginx, restart your BBS if necessary (services should/might recycle when you save services.ini), and reload your Home page, and hopefully it'll work.
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 410 |
Nodes: | 16 (2 / 14) |
Uptime: | 81:20:39 |
Calls: | 8,579 |
Calls today: | 3 |
Files: | 13,225 |
Messages: | 5,932,303 |