From 121388aaf2bf47ed530b456d731096c3ab86ec7c Mon Sep 17 00:00:00 2001 From: tteckster Date: Fri, 18 Feb 2022 16:11:09 -0500 Subject: [PATCH] Update node-red-dark.sh --- misc/node-red-dark.sh | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/misc/node-red-dark.sh b/misc/node-red-dark.sh index 8c1e25a2..152a45a8 100644 --- a/misc/node-red-dark.sh +++ b/misc/node-red-dark.sh @@ -6,6 +6,7 @@ BL=`echo "\033[36m"` CM='\xE2\x9C\x94\033' GN=`echo "\033[1;92m"` CL=`echo "\033[m"` +clear echo -e "${RD}Backup your Node-Red flows before running this script!!${CL} \n " while true; do read -p "This will Install midnight-red theme. Proceed(y/n)?" yn @@ -27,7 +28,29 @@ npm install @node-red-contrib-themes/midnight-red &>/dev/null echo -e "${CM}${CL} \r" echo -en "${GN} Writing Settings... " -cat <> /root/.node-red/settings.js +cat < /root/.node-red/settings.js +module.exports = { uiPort: process.env.PORT || 1880, + + mqttReconnectTime: 15000, + + serialReconnectTime: 15000, + + debugMaxLength: 1000, + + functionGlobalContext: { + }, + exportGlobalContextKeys: false, + + + // Configure the logging output + logging: { + console: { + level: "info", + metrics: false, + audit: false + } + }, + // Customising the editor editorTheme: { theme: "midnight-red"