From 0ccfa188e1c72859ffbaa37caf2e3a9edf28b57b Mon Sep 17 00:00:00 2001 From: syuilo Date: Tue, 14 Feb 2017 09:01:25 +0900 Subject: [PATCH] #133 Closes #133, #162 --- src/server.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/server.ts b/src/server.ts index 485746caf..0274f6c18 100644 --- a/src/server.ts +++ b/src/server.ts @@ -17,6 +17,7 @@ import config from './conf'; */ const app = express(); app.disable('x-powered-by'); +app.set('trust proxy', 'loopback'); // Log app.use(morgan(process.env.NODE_ENV == 'production' ? 'combined' : 'dev', {