Skip to content

Commit 86e8366

Browse files
committed
feat(settings): webapp listening port
1 parent 34e2596 commit 86e8366

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

gateway.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ if (settings.database.nonMatchesName.value)
6767
require("console-stamp")(console, settings.general.consoleLogDateFormat.value); //timestamp logs - https://github.com/starak/node-console-stamp
6868

6969
//HTTP ENDPOINT - accept HTTP: data from the internet/LAN
70-
http.createServer(httpEndPointHandler).listen(8081);
70+
http.createServer(httpEndPointHandler).listen(settings.general.port.value);
7171

7272
console.info('*********************************************************************');
7373
console.info('************************* GATEWAY APP START *************************');

settings.json5

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,12 @@
7171
editable: false,
7272
description: 'the port at which the gateway.js socket app is listening',
7373
},
74+
port: {
75+
value: 8081,
76+
type: 'number',
77+
editable: false,
78+
description: 'the port at which the web app is listening',
79+
},
7480
genNodeIfNoMatch: {
7581
value: 'false',
7682
description: 'generate a new node even if the data received does not match any metric definition, default = false',

0 commit comments

Comments
 (0)