1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2025-01-12 04:23:04 +02:00

update node-red

This commit is contained in:
kev 2016-09-24 08:49:48 +08:00
parent c811c25796
commit 545966a976

View File

@ -52,7 +52,10 @@ module.exports = {
username: "admin", username: "admin",
password: "$2a$08$zZWtXTja0fB1pzD4sHCMyOCMYz2Z6dNbM6tl8sJogENOMcxWV9DN.", password: "$2a$08$zZWtXTja0fB1pzD4sHCMyOCMYz2Z6dNbM6tl8sJogENOMcxWV9DN.",
permissions: "*" permissions: "*"
}] }],
default: {
permissions: "read"
}
}, },
//... //...
@ -60,14 +63,14 @@ module.exports = {
} }
``` ```
> Password hash can be generated by: > Password hash can be generated by running `node-red-admin hash-pw`.
>> `node -e "console.log(require('bcryptjs').hashSync('password', 8))"`
## up and running ## up and running
``` ```
$ cd ~/fig/node-red/ $ cd ~/fig/node-red/
$ docker-compose up -d $ docker-compose up -d
$ docker-compose exec node-red node-red-admin hash-pw
$ vi data/settings.js $ vi data/settings.js
$ docker-compose exec node-red bash $ docker-compose exec node-red bash
>>> cd /root/.node-red >>> cd /root/.node-red