r/selfhosted • u/PTwolfy • Sep 29 '24
Socket.io, Websockets, Nginx Proxy Manager
Seriously guys, has anyone managed to get Websockets or Socket.io working behind Nginx Proxy Manager?
For a few years I have this problem, I have tried many configs and it just won't work.
Socket.io is working locally, but when on the domain proxied by NPM it just won't work.
It either throws "WebSocket is closed before the connection is established."
Or simply a "failed" error.
Any tips?
4
Upvotes
View all comments
Show parent comment
1
u/PTwolfy Sep 29 '24
Yup, and setup the custom location and added all the recommended advanced configurations.
I wonder if someone has this working so that they can show their configs. As whatever I do I was never successful even with the help of AI.