Skip to content

Instantly share code, notes, and snippets.

View LuisCusihuaman's full-sized avatar
🛸
refactorin' code

edu LuisCusihuaman

🛸
refactorin' code
View GitHub Profile
@LuisCusihuaman
LuisCusihuaman / app.js
Created July 6, 2020 23:55 — forked from minhchu/app.js
Nginx and Express Morgan configurations for logging in production
'use strict';
const app = express();
...
app.set('trust proxy', true);
if (process.env.ENVIRONMENT == 'development') {
app.use(logger('dev'));
} else {