Node-RED – the first natural step of securing a web application is by enabling user login

$ node-red-stop
$ cd .node-red
$ cp settings.js settings.js.original
 $ vi settings.js
adminAuth: {type: „credentials“, users: [{username: „admin“, password: „“, permissions: „*“ }]},
$ sudo npm install -g node-red-admin
$ node-red-admin hash-pw
<password>
$ vi settings.js
adminAuth: {type: „credentials“, users: [{username: „admin“, password: „<password>“, permissions: „*“}]},
$ node-red-start

Leave a Reply

You must be logged in to post a comment.