File tree Expand file tree Collapse file tree 2 files changed +3
-7
lines changed Expand file tree Collapse file tree 2 files changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -4,12 +4,13 @@ module.exports = function () {
4
4
uiPort : process . env . PORT || 5000 ,
5
5
userDir : ".nodered/" ,
6
6
flowFile : "flows.json" ,
7
+ credentialSecret : process . env . SECRET || false ,
7
8
editorTheme : {
8
9
page : {
9
10
css : "/app/css/node-red.css"
10
11
} ,
11
12
header : {
12
- "title" : "Docker node-red" ,
13
+ "title" : process . env . TITLE || "Docker node-red" ,
13
14
"image" : null ,
14
15
"url" : "#"
15
16
}
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
set -xe
3
3
4
-
5
4
if [[ -n $NODES_URL_FILE ]]; then
6
5
wget $NODES_URL_FILE -O /tmp/nodes_file.txt
7
6
cat /tmp/nodes_file.txt | xargs npm install -g
@@ -17,7 +16,6 @@ npm install bcryptjs randomstring when request debug
17
16
if [[ -n $AUTH_URL ]]; then
18
17
export AUTH_METHOD=" http" ;
19
18
echo " Using http based auth!"
20
- cp /app/settings_http.js /app/settings.js
21
19
fi
22
20
if [[ " $AUTH_METHOD " == " passwd" ]]; then
23
21
echo " Using passwd based auth!"
@@ -28,7 +26,4 @@ if [[ -n "$NO_AUTH" ]]; then
28
26
export AUTH_METHOD=" noauth"
29
27
fi
30
28
31
- # workaround node-red-admin port
32
- sed -i ' s/1880/5000/g' /usr/local/lib/node_modules/node-red-admin/lib/config.js
33
-
34
- node-red -s /app/settings.js
29
+ node-red -s /app/settings.js --port $PORT
You can’t perform that action at this time.
0 commit comments