Node-red Instances

Hello,

How we can start multiple nod-red instances in ctrlX Core?

Best reply by CodeShepherd

We did some test and you can start your own plain node-RED instance via the following command:

$SNAP/bin/node $SNAP/lib/node_modules/.bin/node-red -p 1881 -u $SNAP_DATA/solutions/activeConfiguration/node-RED1/

This will create a new folder inside of the active configuration (app data) including all project data.
!!! Beware of security risk because open access !!!
With this standard configuration you directly access via IP of the control and chosen port (no reverse proxy) e.g. 192.168.1.1:1881 and you will have no authentication for external access.
There is no warranty or support for this setup.

As addition you can use our adapted settings.json for an integration into the authentication (see attached). Simply create your instance once that the new project folder is available and replace the existing settings file. This will force a user to login when first accessing the node-RED flow editor with username and password via the user management of the ctrlX CORE itself. Or you can add an valid bearer token as parameter to your URL:

192.168.1.1:1881?access_token=eyJhbGciOiJFUz....
settings.js
23.1KB
View original
4 replies