We recently bought a raspberry Pi 4 and we tried to set up a password for node-red.
We went to settings.js but this seemed to be empty. Then we filled in this:
But when we tried to start our node-red there was a error with the users. Does anybody have advice on how to password protect node-red or does anybody know how to solve this problem?
which settings file did you edit exactly? If it was empty then I guess you had not yet run Node-RED. The best thing to do is to delete (or move) the settings file, run node-red and it will copy into place a default settings file. It logs exactly which settings file it is using when it starts up. You can then edit that file and restart Node-RED.
If you get any errors, please share the actual error message
The file that i edited was settings.js. The error was that the : after users was not recognised.
I tried using your solution by deleting all files of the Node-red folder (.node-red), and it works.
Thanks a lot!
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.