Skip to content

Node.js based forum software built for the modern web

updated config to not force use of the port if not required (i.e. try.nodebb.org)

Julian Lam11f0321bb813
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