Trust proxy in app. Should finally make "localhost" in reverse port forwarding work automagically now that the load balancer is set up correctly.

This commit is contained in:
Simo Kinnunen
2014-10-16 17:03:47 +09:00
parent 1932c17508
commit d785f2a59c

View File

@@ -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())