From 08cdfd2d601bbc77028ae634fb53fd2e7b8e0b70 Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Mon, 6 Jun 2016 14:35:00 -0400 Subject: [PATCH] resolve bug with url path when SSL certificate is handled by NodeBB --- app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app.js b/app.js index 84ba5251d8..b40ec938a4 100644 --- a/app.js +++ b/app.js @@ -118,7 +118,7 @@ function start() { var urlObject = url.parse(nconf.get('url')); var relativePath = urlObject.pathname !== '/' ? urlObject.pathname : ''; nconf.set('base_url', urlObject.protocol + '//' + urlObject.host); - nconf.set('secure', urlObject.protocol === 'https'); + nconf.set('secure', urlObject.protocol === 'https:'); nconf.set('use_port', !!urlObject.port); nconf.set('relative_path', relativePath); nconf.set('port', urlObject.port || nconf.get('port') || nconf.get('PORT') || 4567);