-
Notifications
You must be signed in to change notification settings - Fork 50
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
Dashboard 2.0 behind reverse proxy (nginx) #1612
Comments
Hello @WoMec I have this (I have just migrated to 2.0 this week) in my nginx.conf file (using docker-compose) and I have it working (in future I want to leave location at '/'). (see at bottom) But THIRD PARTY NODES are NOT working. I get this errores in browser console
@bartbutenaers do uou know if this is a "problem" of all third party nodes or a general "problem" of Dashboard 2.0?
|
This may be the same problem #1024 |
In my humble opinion, I think nowadays working with docker and nignx is a must. What do you think? Does it have a easy solution? |
@ortegafernando how are you installing your third-party nodes? Via the palette manager? or as global installs? |
@joepavitt By pallete manager. If you need any log or something from me, please ask me |
@ortegafernando if you have a look at #1615 I think I have found the problem. If you setup httpAdminRoot to 'nr' and then proxy /nr to http://nodered:1880/nr/ then I think that may provide a workaround. That is if I understand the nginx config correctly. |
Hi @colinl, this is what I have now in docker-compose.yml file:
And this is what browser console says when I access to dashboard 2.0 (everything works fine but third party nodes):
I have not changed anthing in settings.js so I supposed that httpAdminRoot is to default one ''. In nginx.conf I have:
I have changed these last line in nginx.conf to:
And now I can see third party nodes. But also I can acccess to admin (where we edit nodes) in both cases (of course I could delete the /nr/ entry in my nginx.conf file):
What I want finally want to have is this type of proxy:
I make these changes:
/: I can not see anthing in mydomain.com, some errors about https://mydomain.com/sw.js May be because dashboard 2.0 must be in a subpath of main nodered admin page? I think that there are two problems:
What do you think? Do you think that if FlowFuse solve the #1 all will work perfectly? thanks a lot for your help |
From your description I am convinced that the cause is that described in #1615 and that a fix for that would fix your issues. |
Hi,
I am trying to set up a reverse proxy with Nginx for the new Node-RED Dashboard 2.0. Previously, with Dashboard 1.0, I was able to access the dashboard easily by configuring Nginx to route requests based on the device's IP address or FQDN.
I would like to achieve the same setup for Dashboard 2.0, but I am facing issues with WebSocket connections. It seems that my Nginx configuration is not handling WebSockets correctly, and the dashboard does not work as expected.
Could you provide guidance on the correct Nginx configuration to ensure WebSocket support for Dashboard 2.0?
Thanks!
The text was updated successfully, but these errors were encountered: