X-Git-Url: https://git.auder.net/?p=vchess.git;a=blobdiff_plain;f=app.js;h=e32ef39e7d88653bb2b6d55f60e1a2f2f4f13411;hp=7a8b98f3c330d0cf78a1778ef138cdc9ee6e4b62;hb=9234226104764b91df9d677fb360ad538b98510c;hpb=794b8a9863358c4572726c0d89704271efcf2527 diff --git a/app.js b/app.js index 7a8b98f3..e32ef39e 100644 --- a/app.js +++ b/app.js @@ -19,7 +19,8 @@ if (app.get('env') === 'development') } else { - app.set('trust proxy', true); //http://dev.rdybarra.com/2016/06/23/Production-Logging-With-Morgan-In-Express/ + // http://dev.rdybarra.com/2016/06/23/Production-Logging-With-Morgan-In-Express/ + app.set('trust proxy', true); // In prod, only log error responses (https://github.com/expressjs/morgan) app.use(logger('combined', { skip: function (req, res) { return res.statusCode < 400 }