C:\Users\USER\.node-red\settings.js 열기 (경로는 사용자마다 상이할 수 있음)
Ctrl+F 로 adminAuth 검색
//adminAuth: {
// type: "credentials",
// users: [{
// username: "admin",
// password: "$2a$08$zZWtXTja0fB1pzD4sHCMyOCMYz2Z6dNbM6tl8sJogENOMcxWV9DN.",
// permissions: "*"
// }]
//},
해당 내용의 주석을 모두 제거
username과 password 항목을 변경
username은 그냥 적어도 무방하지만 password 항목은 hash 작업이 필요함
https://www.devglan.com/online-tools/bcrypt-hash-generator
Programming Blog Article Feeds as per your Interest | DevGlan
Best programming article feeds as per your Interest on different technologies. Subscribe to any technology and explore the best articles from around the web.
www.devglan.com
해당 사이트 참고하여 지정하려는 패스워드를 hash로 변환
변환된 hash를 settings.js의 password 항목에 복붙
여러 유저가 접속할 수 있는 환경을 구성하려면
{
username: "유저",
password: "비밀번호",
permissions: "*"
}
와 같이 user 블록을 추가하여 퍼미션을 지정하며 관리한다.
'통신 > Node-RED' 카테고리의 다른 글
[Node-RED] 슬라이더와 게이지를 통한 dashboard 간단 사용 방법 (0) | 2022.09.06 |
---|---|
[Node-RED] Node-RED Project 사용법 (0) | 2022.08.31 |
[Node-RED] Node-RED 설치 및 간단 사용 방법 (0) | 2022.08.31 |