I have developed an application in Node Red to which I was able to assign an administrator username and password to access the nodes I created, and another one for the dashboard. However, I want to upload this project to oracle cloud to be able to access at any time and place. To do this I created a VM and installed Node Red on it. Everything works fine, but when I modify the settings.js file, to create the username and password that I had in my local project, this modification does not work, and no matter how many times I use different browsers or incognito mode, it never asks me for authentication.
Have you restarted Node-RED after making the changes to settings.js?
Have you checked you are editing the same settings.js file that Node-RED is using? Node-RED logs the full path to the file it is using when it starts up.
Yes to both questions. I have retarted Node-RED after making those changes. First of all, I stop Node-RED execution, make the changes, then I restarted it.
The settings.js path is the same that I edited. I thought that it was the problem but it didn't. Even I created aother settings.js file and tried to start up with this file, but i didn't work.
I tried again, and I saw that my settings.js file is here: /home/nodered/.node-red/settings.js but I can't get in there, I got this error: -bash: cd: /home/nodered/.node-red/: Permission denied
No, I didn't. I just installed it on my VM, tried to modify my settings.js. Then I saw that my settings file path was inside of nodered folder which I cannot access because that error in my last comment. Where or how I have to login? Could you tell me how to do it please?
I reinstalled Node Red on my VM. Then I changed the user to root, and installed nodered again. Then I modified my settings.js, restarted and woolaa I worked.
Thank you for your help, time and patience. Greetings.