Hi, Is it possible to set a different password for the ui dashboard than that of node red. I want to have node red accessible with one password and the dashboard with another. I am using a raspberry pi. If possible some instructions would be great.
All figured out
Good stuff.
Note...
It would be good for anyone searching the forum who comes across your thread have the answer or a link to the document that showed you how.
In settings.js
The following is the section controls the node red password:
// Securing Node-RED
// -----------------
// To password protect the Node-RED editor and admin API, the following
// property can be used. See http://nodered.org/docs/security.html for details.
//adminAuth: {
// type: "credentials",
// users: [{
// username: "admin",
// password: "$2a$08$zZWtXTja0fB1pzD4sHCMyOCMYz2Z6dNbM6tl8sJogENOMcxWV9DN.",
// permissions: "*"
// }]
//},
Section of Settings.js which controls the Dashboard (UI) password:
//To password protect the node-defined HTTP endpoints (httpNodeRoot), or
//the static content (httpStatic), the following properties can be used.
// The pass field is a bcrypt hash of the password.
// See http://nodered.org/docs/security.html#generating-the-password-hash
//httpNodeAuth: {user:"user",pass:"$2a$08$zZWtXTja0fB1pzD4sHCMyOCMYz2Z6dNbM6tl8sJogENOMcxWV9DN."},
Note: To edit node red setting.js file. Open file manager (folder icon on raspberry pi dashboard). In folder path bar, search - /home/pi/.node-red and open the setting file.
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.