allow custom interface

This commit is contained in:
2026-05-14 11:41:00 -04:00
parent 2c85e84176
commit b7ff3a9bb6
+3 -2
View File
@@ -30,6 +30,7 @@ const helmet = require('helmet');
// Get what we need for starting the server // Get what we need for starting the server
const serverPort = process.env.SRV_PORT; const serverPort = process.env.SRV_PORT;
const serverInterface = process.env.SRV_IF;
// Database Setup // Database Setup
const db = database.db; const db = database.db;
@@ -111,7 +112,7 @@ db.sync().then(() => {
res.json(FormatForAPI(err.message || 'Internal Server Error')); res.json(FormatForAPI(err.message || 'Internal Server Error'));
}); });
app.listen(serverPort, () => { app.listen(serverPort, serverInterface, () => {
console.log(`NDM running @ localhost:${serverPort}`); console.log(`NDM running @ ${serverInterface}:${serverPort}`);
}); });
}); });