mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-12-24 01:10:31 +01:00
moved port 80 and 443 warnings to its own conditional
This commit is contained in:
@@ -193,7 +193,9 @@ module.exports.server = server;
|
|||||||
if (nconf.get('port') != 80 && nconf.get('port') != 443 && nconf.get('use_port') === true) {
|
if (nconf.get('port') != 80 && nconf.get('port') != 443 && nconf.get('use_port') === true) {
|
||||||
winston.info('Enabling \'trust proxy\'');
|
winston.info('Enabling \'trust proxy\'');
|
||||||
app.enable('trust proxy');
|
app.enable('trust proxy');
|
||||||
} else if (process.env.NODE_ENV !== 'development') {
|
}
|
||||||
|
|
||||||
|
if ((nconf.get('port') == 80 || nconf.get('port') == 443) && process.env.NODE_ENV !== 'development') {
|
||||||
winston.info('Using ports 80 and 443 is not recommend; use a proxy instead. See README.md');
|
winston.info('Using ports 80 and 443 is not recommend; use a proxy instead. See README.md');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user