From 11f0321bb813d60a19f8c872a4f4a553d914d622 Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Fri, 10 May 2013 23:57:49 -0400 Subject: [PATCH] updated config to not force use of the port if not required (i.e. try.nodebb.org) --- config.default.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/config.default.js b/config.default.js index 562c5a194d..0edac9d7d6 100644 --- a/config.default.js +++ b/config.default.js @@ -4,6 +4,7 @@ var config = { // "base_url" is expected to be a publically accessible URL to your NodeBB instance (Default base_url: 'http://localhost', port: '4567') "base_url": "http://localhost", + "use_port": true, "port": 4567, // The host and port to the SMTP server used by NodeBB. The "from" value must be changed. @@ -40,10 +41,11 @@ var config = { // Privileged Actions Reputation Thresholds "privilege_thresholds": { - "manage_thread": 1000 + "manage_thread": 1000, + "manage_content": 2000 } } -config.url = config.base_url + ':' + config.port + '/'; +config.url = config.base_url + (config.use_port ? ':' + config.port : '') + '/'; module.exports = config; \ No newline at end of file