moved port 80 and 443 warnings to its own conditional

v1.18.x
Julian Lam 11 years ago
parent 38ee3fd5a3
commit 95d671281a

@ -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');
} }

Loading…
Cancel
Save