mirror of
https://github.com/Mailu/Mailu.git
synced 2025-01-18 03:21:36 +02:00
Explicitly define ProxyFix options
Even though these seem to be the defaults, since 1.7 x_proto was not being honored (see #1309), this fixes this issue for me.
This commit is contained in:
parent
f602ef4fe2
commit
6bd14506c0
@ -40,7 +40,7 @@ class PrefixMiddleware(object):
|
|||||||
return self.app(environ, start_response)
|
return self.app(environ, start_response)
|
||||||
|
|
||||||
def init_app(self, app):
|
def init_app(self, app):
|
||||||
self.app = fixers.ProxyFix(app.wsgi_app)
|
self.app = fixers.ProxyFix(app.wsgi_app, x_for=1, x_proto=1)
|
||||||
app.wsgi_app = self
|
app.wsgi_app = self
|
||||||
|
|
||||||
proxy = PrefixMiddleware()
|
proxy = PrefixMiddleware()
|
||||||
|
Loading…
Reference in New Issue
Block a user