From 3eb99d2635973d0ae9d44bc74e4325a8820925b1 Mon Sep 17 00:00:00 2001 From: nblock Date: Wed, 16 Sep 2020 11:20:13 +0200 Subject: [PATCH 1/2] Make host and port configurable (#94) Use the previous values as the default. --- config/default.json | 2 ++ spacedeck.js | 5 +++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/config/default.json b/config/default.json index 57ae30a..1a50908 100644 --- a/config/default.json +++ b/config/default.json @@ -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", diff --git a/spacedeck.js b/spacedeck.js index 4cacaf2..233e21e 100644 --- a/spacedeck.js +++ b/spacedeck.js @@ -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'); From a6616f34637ff53a463409a35593d27bef3a59d3 Mon Sep 17 00:00:00 2001 From: Omid Date: Sat, 19 Sep 2020 20:12:51 +0300 Subject: [PATCH 2/2] Add missing config for s3 storage (#96) This var `storage_endpoint` will be read and used at https://github.com/spacedeck/spacedeck-open/blob/3eb99d2635973d0ae9d44bc74e4325a8820925b1/helpers/uploader.js#L14 --- config/default.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/default.json b/config/default.json index 1a50908..0c8e87f 100644 --- a/config/default.json +++ b/config/default.json @@ -8,7 +8,7 @@ "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",