mirror of
https://github.com/vimagick/dockerfiles.git
synced 2024-12-25 02:04:06 +02:00
update node-red
This commit is contained in:
parent
0edda17722
commit
17f8b8927a
@ -40,12 +40,6 @@ node-red:
|
||||
```javascript
|
||||
module.exports = {
|
||||
|
||||
//...
|
||||
|
||||
flowFile: 'flows.json',
|
||||
|
||||
//...
|
||||
|
||||
adminAuth: {
|
||||
type: "credentials",
|
||||
users: [{
|
||||
@ -58,26 +52,30 @@ module.exports = {
|
||||
}
|
||||
},
|
||||
|
||||
//...
|
||||
|
||||
}
|
||||
```
|
||||
|
||||
> Password hash can be generated by running `node-red-admin hash-pw`.
|
||||
> Password hash can be generated by running `node-red-admin hash-pw`
|
||||
> <https://nodered.org/docs/security>
|
||||
|
||||
## up and running
|
||||
|
||||
```
|
||||
$ cd ~/fig/node-red/
|
||||
```bash
|
||||
$ docker-compose up -d
|
||||
|
||||
$ docker-compose exec node-red node-red-admin hash-pw
|
||||
>>> Password: ******
|
||||
... $2a$08$zZWtXTja0fB1pzD4sHCMyOCMYz2Z6dNbM6tl8sJogENOMcxWV9DN.
|
||||
|
||||
$ vi data/settings.js
|
||||
|
||||
$ docker-compose exec node-red bash
|
||||
>>> cd /data
|
||||
>>> apk add -U build-base
|
||||
>>> npm install node-red-node-irc
|
||||
>>> npm install node-red-node-daemon
|
||||
>>> exit
|
||||
|
||||
$ docker-compose restart
|
||||
```
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user