Unverified Commit 3eb99d26 authored by nblock's avatar nblock Committed by GitHub
Browse files

Make host and port configurable (#94)

Use the previous values as the default.
parent 09b42f24
Pipeline #977 canceled with stages
......@@ -2,6 +2,8 @@
"team_name": "My Open Spacedeck",
"contact_email": "support@example.org",
"host": "::",
"port": 9666,
"endpoint": "http://localhost:9666",
"invite_code": "top-sekrit",
......
......@@ -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');
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment