FORUM CTRLX AUTOMATION
ctrlX World Partner Apps for ctrlX AUTOMATION
04-11-2023 12:05 PM
04-11-2023 12:35 PM
Just for my curiosity: What would be yoru usecase which requires multiple Node-Red instance? since you can creat ecompletly indepenandt flows in NR I cuurently only see disadantages:
04-12-2023 04:10 PM
Hi vlad,
this is not possible and not foreseen.
Can you describe your usecase, maybe we can find an alternative solution.
Regards
04-20-2023 07:59 AM
Hello,
Yes. So we have a partner who want to use our ctrlX Core in their applications.
They asked for Multiple Node-RED instances in paralel. During a normal integration, to keep the things separated and modular,they are using multiple Node-RED instances. I have attached two examples of how they can start them in other installations (including on a raspberrypi pi). This is a feature fully supported by Node-RED. How can we use it to run also on CtrlX?
05-26-2023 12:51 PM
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....