Merge branch 'mnt' of github.com:spacedeck/spacedeck-open into mnt

This commit is contained in:
mntmn
2020-09-22 15:22:08 +02:00
2 changed files with 6 additions and 3 deletions

View File

@@ -2,11 +2,13 @@
"team_name": "My Open Spacedeck",
"contact_email": "support@example.org",
"host": "::",
"port": 9666,
"endpoint": "http://localhost:9666",
"invite_code": "top-sekrit",
"storage_region": "eu-central-1",
"storage_endpoint": "http://localhost:4572",
"storage_bucket": "my_spacedeck_bucket",
"storage_cdn": "/storage",
"storage_local_path": "./storage",

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');