From cf954651034d271526dfa195e2e16424de8b2ee6 Mon Sep 17 00:00:00 2001 From: Sheogorath Date: Wed, 28 Nov 2018 13:21:07 +0100 Subject: [PATCH 1/2] Update socket.io Our socket.io version is 2.0.4 while the current socket.io version is 2.1.1. This patch updates socket.io to version 2.1.1 and takes care of the CDN client version. Signed-off-by: Sheogorath --- package.json | 4 ++-- public/views/codimd/foot.ejs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 6d2f35f..cf1e706 100644 --- a/package.json +++ b/package.json @@ -115,8 +115,8 @@ "sequelize": "^3.28.0", "sequelize-cli": "^2.5.1", "shortid": "2.2.8", - "socket.io": "~2.0.4", - "socket.io-client": "~2.0.4", + "socket.io": "~2.1.1", + "socket.io-client": "~2.1.1", "spin.js": "^2.3.2", "sqlite3": "^4.0.1", "store": "^2.0.12", diff --git a/public/views/codimd/foot.ejs b/public/views/codimd/foot.ejs index 9b1c68d..3a7fefd 100644 --- a/public/views/codimd/foot.ejs +++ b/public/views/codimd/foot.ejs @@ -12,7 +12,7 @@ - + From a4941be3de3b849a6b1e4885b4801f3987125ba0 Mon Sep 17 00:00:00 2001 From: Sheogorath Date: Wed, 28 Nov 2018 14:38:42 +0100 Subject: [PATCH 2/2] Warn on missing serverURL We see some issues that are based on not properly configured `config.serverURL`. This patch adds a warning when `config.serverURL` is an empty value. This should provide users direct feedback about how to improve their configs. Signed-off-by: Sheogorath --- lib/config/index.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/config/index.js b/lib/config/index.js index c1005b0..b848096 100644 --- a/lib/config/index.js +++ b/lib/config/index.js @@ -101,6 +101,10 @@ config.serverURL = (function getserverurl () { return url })() +if (config.serverURL === '') { + logger.warn('Neither \'domain\' nor \'CMD_DOMAIN\' is configured. This can cause issues with various components.\nHint: Make sure \'protocolUseSSL\' and \'urlAddPort\' or \'CMD_PROTOCOL_USESSL\' and \'CMD_URL_ADDPORT\' are configured properly.') +} + config.Environment = Environment // auth method