-
Notifications
You must be signed in to change notification settings - Fork 1
/
settings_dev.js
109 lines (103 loc) · 2.9 KB
/
settings_dev.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
data = require("./package.json")
module.exports = {
credentialSecret: "saashup",
flowFile: "flows.json",
flowFilePretty: true,
adminAuth: {
type: "credentials",
users: [{
username: "admin",
password: "$2a$08$s.NFdSn4Gm4d7gHErya//e6O8RO1/3f7TZ7zflXJ9jfFV0cI6jGwK",
permissions: "*"
}]
},
/*https: {
key: require("fs").readFileSync('/data/privkey.pem'),
cert: require("fs").readFileSync('/data/cert.pem')
},
requireHttps: true,*/
httpNodeAuth: {
user:"admin",pass:"$2a$08$s.NFdSn4Gm4d7gHErya//e6O8RO1/3f7TZ7zflXJ9jfFV0cI6jGwK"
},
uiPort: process.env.PORT || 1880,
disableEditor: false,
httpStatic: [
{ path: './public', root: '/' },
{ path: './public/doc.html', root: '/doc' },
{ path: './public/openapi.yml', root: '/openapi' }
],
httpAdminRoot: '/nodered',
diagnostics: {
enabled: true,
ui: true,
},
runtimeState: {
enabled: false,
ui: false,
},
logging: {
console: {
level: "info",
metrics: false,
audit: false,
handler: function(settings) {
return function(msg) {
const level = {
20: 'error',
30: 'warn',
40: 'info'
};
const lvl = "level" in msg ? msg.level : "40";
delete msg.type;
delete msg.z;
delete msg.path;
delete msg.name;
delete msg.id;
let line = `${data.name} level=${level[lvl]} version=${data.version}`;
if (typeof msg.msg === 'object') {
for (const key of Object.keys(msg.msg)) {
line += ` ${key}=${JSON.stringify(msg.msg[key])}`;
}
} else {
line += ` msg=` + JSON.stringify(msg.msg);
}
if (lvl <= 20) {
return console.error(line);
}
return console.log(line);
}
}
}
},
exportGlobalContextKeys: false,
externalModules: {
},
editorTheme: {
tours: false,
palette: {
},
projects: {
enabled: false,
workflow: {
mode: "manual"
}
},
codeEditor: {
lib: "monaco",
options: {
}
},
markdownEditor: {
mermaid: {
enabled: true
}
},
},
functionExternalModules: true,
functionTimeout: 0,
functionGlobalContext: {
},
debugMaxLength: 1000,
mqttReconnectTime: 15000,
serialReconnectTime: 15000
}