Changing the URL for a Dashboard UI? And having multiples URL's?

3,488 views
Skip to first unread message

Matt T

unread,
Dec 26, 2016, 1:40:41 AM12/26/16
to Node-RED
Hi There,
I've trying out the "node-red-dashboard" nodes after previously using both "node-red-contrib-ui" and freeboard.io (via JSON out of NodeRed).
The new dashboard looks great!

Wondering if it is possible to setup a custom URL for my dashboard? Currently I'm using Bluemix so I access my dashobard by using https://<myname>.mybluemix.net/ui/

Also is it possible to have multiple dashboards (URL's) from a single instance of NodeRed. currently I can create several dashboards but they show as tabs on the interface - I'd like to have separate URL's. for example:
dashboard1.url.com   --> https://<myname>.mybluemix.net/ui/#/0
dashboard2.url.com   --> https://<myname>.mybluemix.net/ui/#/1

Thanks.
Matt.

Jéan Roux

unread,
Dec 26, 2016, 3:48:44 AM12/26/16
to Node-RED
"Also is it possible to have multiple dashboards (URL's) from a single instance of NodeRed. "

I think this were answered before, as cannot be dien, but +1 for me on this req.

Julian Knight

unread,
Dec 26, 2016, 5:09:39 PM12/26/16
to Node-RED
Can't be done at present since the dashboard is a single page app. Even if it were enabled, it would have to be /ui1/#/0, /ui2/#/0 and so on.

Nicholas O'Leary

unread,
Dec 26, 2016, 5:57:52 PM12/26/16
to Node-RED Mailing List
Hi Matt,

you can achieve some of what you want, but not all.

As others have said, what you cannot do today is have multiple dashboards. That is on the long-term todo list, but isn't going to appear any time soon. Even then, they would be on separate paths under the same domain name. With an appropriate proxy in-front, you would be able to map different subdomains to different paths, but that is not available in the Bluemix environment - you'd have to run your own proxy in a Bluemix container to take care of it.

So, putting the multiple dashboards to one side, to answer the first part of your question, it is possible to setup your own domain name to point at your bluemix application - that isn't specific to Node-RED and the Bluemix docs should cover what you need to know.

On the Node-RED side, you can configure the dashboard to serve from the root of the domain rather than from /ui. To do so:
1. make sure httpAdminRoot is set to something other than '/' - in Bluemix it defaults to '/red' so you're good to go with that.
2. Add the following to your bluemix-settings.js file:

       ui: { path: "/" },

Note, the default regular settings file contains a default value for this of "ui". The bluemix-settings.js file predates us adding that default value, so you won't find a ui entry in there and you'll have to add it.

With these two things done, you will be able to access the editor at http://example.com/red and the dashboard at http://example.com

Nick



--
http://nodered.org
 
Join us on Slack to continue the conversation: http://nodered.org/slack
---
You received this message because you are subscribed to the Google Groups "Node-RED" group.
To unsubscribe from this group and stop receiving emails from it, send an email to node-red+unsubscribe@googlegroups.com.
To post to this group, send email to node...@googlegroups.com.
Visit this group at https://groups.google.com/group/node-red.
To view this discussion on the web, visit https://groups.google.com/d/msgid/node-red/e8038931-0639-4d8c-b19d-de36ece59b08%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Matt T

unread,
Dec 27, 2016, 4:53:49 AM12/27/16
to Node-RED
Hi Nick,
Thanks heaps for your detailed response. 
Will give that a go.
Cheers,
Matt.
To unsubscribe from this group and stop receiving emails from it, send an email to node-red+u...@googlegroups.com.

To post to this group, send email to node...@googlegroups.com.
Visit this group at https://groups.google.com/group/node-red.
Reply all
Reply to author
Forward
0 new messages