Node-RED version 0.20.8
Dowload settings.js file save in your directory
wget https://raw.githubusercontent.com/node-red/node-red/master/packages/node_modules/node-red/settings.js
docker run -it -d \
--name nodered \
-p 1880:1880 \
-e TZ=Asia/Bangkok \
-v /Your-Directory/settings.js:/data/settings.js \
nararat/node-red:latest
Generate Password docker exec -u root -it [CONTAINER ID] node-red-admin hash-pw
Copy Password Hash
Edit settings.js file Uncommenting a line "adminAuth" and "httpNodeAuth"
// 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: "Your-Username", password: "Your-Password-Hash-Generate", permissions: "*" }] },
// 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:"Your-Username",pass:"Your-Password-Hash-Generate"},
Restart CONTAINER
Content type
Image
Digest
Size
359.8 MB
Last updated
over 6 years ago
docker pull nararat/node-red