Make host and port configurable (#94)

Use the previous values as the default.
This commit is contained in:
nblock
2020-09-16 11:20:13 +02:00
committed by GitHub
parent 09b42f24c2
commit 3eb99d2635
2 changed files with 5 additions and 2 deletions

View File

@@ -114,9 +114,10 @@ module.exports = app;
db.init();
// START WEBSERVER
const port = 9666;
const host = config.get('host');
const port = config.get('port');
const server = http.Server(app).listen(port, () => {
const server = http.Server(app).listen(port, host, () => {
if ("send" in process) {
process.send('online');