Sign inSign up

nararat/node-red

By nararat

•Updated over 6 years ago

Image
0

64

nararat/node-red repository overview

⁠Node-RED + Node-RED Admin

Node-RED version 0.20.8

⁠Step 1: Config

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

⁠Step 2: Run

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

⁠Step 3: Node-RED Admin Password Generate

  1. Generate Password docker exec -u root -it [CONTAINER ID] node-red-admin hash-pw

  2. Copy Password Hash

  3. 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"},

  4. Restart CONTAINER

Tag summary

Content type

Image

Digest

Size

359.8 MB

Last updated

over 6 years ago

docker pull nararat/node-red