Node-Red存取保護
sudo npm install -g --unsafe-perm node-red-admin
產生 password hash 要生成合適的密碼hash,可以使用node-red-admin命令行工具 node-red-admin hash-pw
node-red-admin hash-pw
Password:
node-red-admin list
cd ~/.node-red/
nano settings.js
adminAuth: {
type: "credentials",
users: [{
username: "admin",
password: "hash過的密碼",
permissions: "*"
}]
}

Last updated
Was this helpful?