-
-
Notifications
You must be signed in to change notification settings - Fork 88
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Websocket [socket.io] not working with NGINX Proxy #124
Comments
Seems you are not alone in having NGINX configuration issues with websockets: A few things in there to work through. Actually, it would be good to get a definitive config for NGINX, then we can add that to the WIKI. So I will leave this open, if you wouldn't mind confirming if you found a fix and what it was. Or if the posts in that issue don't help, come back anyway and we can look at other articles. Though I don't need it, I probably should set up NGINX on my home automation server anyway so that I understand the config better. |
So far i have this below working the way that when called / it redirect to /uibuilder and shows the page and websockets work properly.
|
I use this nginx configuration and everything works fine.
|
A work in progress but I've added a WIKI article that walks through installation and configuration of NGINX in detail: https://github.com/TotallyInformation/node-red-contrib-uibuilder/wiki/NGINX It includes TLS, HTTP/2, HSTS, secure protocol and secure encryption cipher restrictions. It is fully annotated. |
@hanc2006 the problem is that i want to redirect a root e.g. / into uibuilder - not the http admin interface ( which is what you are doing in your config ) |
Make sure you are redirecting the Editor to a different URL. My settings.js directs the editor to I've not yet tried to create a separate virtual site for just the uibuilder elements - I'll try to find some time to have a go. One of the items on my futures list is an option to create a new ExpressJS app just for uibuilder. That would resolve this issue as it would be on a different port and therefore could certainly be proxied independently. |
i`ll give it a go - Having uibuilder as a separate Express app would be a killer feature ! |
Your wish is my command! If you install uibuilder manually using I still need to test https but if you are using NGINX to do https termination, this won't bother you. Assuming my tests on my live platform work out OK, I'll be putting it live as v3.3.0 very soon. |
So cool ! I'll test it over weekend - thanks so much !! |
Tried it today with Caddy instead of NGINX. Also works very well. Caddy configuration is actually easier than NGINX (well shorter anyway, the docs aren't brilliant). |
Stale issue message |
Hi,
I have a dashboard build and working fine with uibuilder, problem i`m facing is where i try to display it via nginx reverse proxy - i can see dashboard ok but the data to dashboard is not being displayed as developer tools shows that websocket connection is not established so nothing goes through.
My nginx config:
Any help on this would be much appreciated !
The text was updated successfully, but these errors were encountered: