|
|
@ -13,7 +13,7 @@ GN=`echo "\033[1;92m"` |
|
|
|
CL=`echo "\033[m"` |
|
|
|
CL=`echo "\033[m"` |
|
|
|
trap die ERR |
|
|
|
trap die ERR |
|
|
|
trap 'die "Script interrupted."' INT |
|
|
|
trap 'die "Script interrupted."' INT |
|
|
|
echo -en "${RD} Backup your Node-Red flows before running this script!!${CL} \n " |
|
|
|
echo -e "${RD} Backup your Node-Red flows before running this script!!${CL} \n " |
|
|
|
while true; do |
|
|
|
while true; do |
|
|
|
read -p "This will install midnight-red theme. Proceed(y/n)?" yn |
|
|
|
read -p "This will install midnight-red theme. Proceed(y/n)?" yn |
|
|
|
case $yn in |
|
|
|
case $yn in |
|
|
@ -127,7 +127,7 @@ module.exports = { |
|
|
|
// type: "credentials", |
|
|
|
// type: "credentials", |
|
|
|
// users: [{ |
|
|
|
// users: [{ |
|
|
|
// username: "admin", |
|
|
|
// username: "admin", |
|
|
|
// password: "$2a$08$zZWtXTja0fB1pzD4sHCMyOCMYz2Z6dNbM6tl8sJogENOMcxWV9DN.", |
|
|
|
// password: "", |
|
|
|
// permissions: "*" |
|
|
|
// permissions: "*" |
|
|
|
// }] |
|
|
|
// }] |
|
|
|
//}, |
|
|
|
//}, |
|
|
@ -172,8 +172,8 @@ module.exports = { |
|
|
|
* The `pass` field is a bcrypt hash of the password. |
|
|
|
* The `pass` field is a bcrypt hash of the password. |
|
|
|
* See http://nodered.org/docs/security.html#generating-the-password-hash |
|
|
|
* See http://nodered.org/docs/security.html#generating-the-password-hash |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
//httpNodeAuth: {user:"user",pass:"$2a$08$zZWtXTja0fB1pzD4sHCMyOCMYz2Z6dNbM6tl8sJogENOMcxWV9DN."}, |
|
|
|
//httpNodeAuth: {user:"user",pass:""}, |
|
|
|
//httpStaticAuth: {user:"user",pass:"$2a$08$zZWtXTja0fB1pzD4sHCMyOCMYz2Z6dNbM6tl8sJogENOMcxWV9DN."}, |
|
|
|
//httpStaticAuth: {user:"user",pass:""}, |
|
|
|
|
|
|
|
|
|
|
|
/******************************************************************************* |
|
|
|
/******************************************************************************* |
|
|
|
* Server Settings |
|
|
|
* Server Settings |
|
|
|