mirror of
https://github.com/vimagick/dockerfiles.git
synced 2024-11-28 09:08:36 +02:00
update node-red
This commit is contained in:
parent
c811c25796
commit
545966a976
@ -52,7 +52,10 @@ module.exports = {
|
||||
username: "admin",
|
||||
password: "$2a$08$zZWtXTja0fB1pzD4sHCMyOCMYz2Z6dNbM6tl8sJogENOMcxWV9DN.",
|
||||
permissions: "*"
|
||||
}]
|
||||
}],
|
||||
default: {
|
||||
permissions: "read"
|
||||
}
|
||||
},
|
||||
|
||||
//...
|
||||
@ -60,14 +63,14 @@ module.exports = {
|
||||
}
|
||||
```
|
||||
|
||||
> Password hash can be generated by:
|
||||
>> `node -e "console.log(require('bcryptjs').hashSync('password', 8))"`
|
||||
> Password hash can be generated by running `node-red-admin hash-pw`.
|
||||
|
||||
## up and running
|
||||
|
||||
```
|
||||
$ cd ~/fig/node-red/
|
||||
$ docker-compose up -d
|
||||
$ docker-compose exec node-red node-red-admin hash-pw
|
||||
$ vi data/settings.js
|
||||
$ docker-compose exec node-red bash
|
||||
>>> cd /root/.node-red
|
||||
|
Loading…
Reference in New Issue
Block a user