Node-RED on Bluemix: how to serve ui as root w/o showing editor

Hi
When running Node-RED on Bluemix based on the develop-local suggested workflow by Nick, I would like to serve only the /ui path when running on the cloud and make the editor (including the login in screen unavailable)

Is this possible ?
Thanks
Peter

In theory, you can set httpAdminRoot to false to disable the editor and admin http api. However there is an open issue that setting it to false currently breaks the dashboard.

Instead, you can use the following settings:

  1. Disable the editor with:
    disableEditor: true

  2. Move the admin api away from /:
    httpAdminRoot: "/some-random-path"

  3. Setup adminAuth so even if someone does find the random path you put admin root on, they won't be able to access it.

  4. Move the dashboard to be served from /:
    ui: { path: '/' }

1 Like