Hi all, I'm trying to help some friends with various monitoring needs. I'm using LoRaWAN devices connected to the TTN ( the Things network ). This is all working well and I'm using an MQTT input from the TTN to feed data into my flows. I have built some nice dashboards and would like to give my friends access to the dashboard. It turns out this is not as easy as I thought, then again I may be wrong.
I'm using a subdomain to forward the traffic to my gateway and onward to my Nginx server, however, I would like to only give access to a specific dashboard and not use a URL like https://nodered.myserver.com/ui/#!/0
Is it possible to change the URL ui/#!/0 to something like /dash1. Further is it possible to have password protection on specific dashboards?
Unfortunately, you've fallen into the trap - that while Dashboard appears to be a set of actual HTML pages, it is not.
It is a single page app. The "pages" are routes within the actual endpoint and exist in the browser. Changing "page" isn't really changing the endpoint and therefore isn't actually creating a new request.
So you cannot, AFAIK, do what you want with Dashboard. The best you could do would be to hide some of the Dashboard "pages" when the Dashboard is requested via your proxy. To do that would require some front-end coding - presumably using a dashboard template node. And just to note that it is unlikely that approach would actually be secure.
To go further with either of the Dashboards would require you to either create separate instances of Node-RED where one of them had a reduced dashboard for external access or to use a commercial cloud offering such as FlowFuse. Or you could use UIBUILDER which supports both single and multi-page UI's (but of course is not Dashboard).
Thank you for your reply. You are right this is possible with dashboard 2 which integrates into node red. It is a flow fuse dashboard however it integrates into standard node red. From what i understand you can create independant users and serve specific pages to specific end users with credentials.
I will add some more here when I worked out, or not how it works.
Hi Julian, thank you for helping with this. There is a bit of a blurry line here. Dashboard 2 is flow fuse but you install it exactly like any other nodes in node red. It is OSS and free. It is good you bring the question up. I will enquire in the flow fuse section.