From d785f2a59cfcc669e9f302f82ce262af04bd1394 Mon Sep 17 00:00:00 2001 From: Simo Kinnunen Date: Thu, 16 Oct 2014 17:03:47 +0900 Subject: [PATCH] Trust proxy in app. Should finally make "localhost" in reverse port forwarding work automagically now that the load balancer is set up correctly. --- lib/units/app/index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/units/app/index.js b/lib/units/app/index.js index b9b3cd69..3bbfc53f 100644 --- a/lib/units/app/index.js +++ b/lib/units/app/index.js @@ -44,6 +44,7 @@ module.exports = function(options) { app.set('views', pathutil.resource('app/views')) app.set('strict routing', true) app.set('case sensitive routing', true) + app.set('trust proxy', true) if (options.disableWatch) { app.use(compression())