-
Notifications
You must be signed in to change notification settings - Fork 0
/
settings.js
40 lines (33 loc) · 920 Bytes
/
settings.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
var baseUrl, uiPort;
uiPort = process.env.PORT || 1880;
if (process.env.APP_NAME) {
baseUrl = 'https://' + process.env.APP_NAME + '.herokuapp.com';
} else {
baseUrl = 'http://localhost:' + uiPort;
}
module.exports = {
// the tcp port that the Node-RED web server is listening on
uiPort: uiPort,
// The file containing the flows. If not set, it defaults to flows_<hostname>.json
flowFile: 'examples/All flows.json',
// Node-RED scans the `nodes` directory in the userDir to find local node files
userDir: __dirname,
// defines order of the categories in the editor palette
paletteCategories: [
'subflows',
'twilio',
'twilio voice',
'twilio sms',
'weather',
'input',
'output',
'function',
'storage',
'advanced',
],
// sets global context data
functionGlobalContext: {
// required to generate sipgate callbacks URLs
baseUrl: baseUrl,
},
};