From 6bd14506c0a1a0ff81a3efeff79884beb651d3d8 Mon Sep 17 00:00:00 2001 From: Brian Maloney <3286425+brian-maloney@users.noreply.github.com> Date: Sun, 28 Jun 2020 17:27:45 -0400 Subject: [PATCH] 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. --- core/admin/mailu/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/admin/mailu/utils.py b/core/admin/mailu/utils.py index 39181678..ce12a09a 100644 --- a/core/admin/mailu/utils.py +++ b/core/admin/mailu/utils.py @@ -40,7 +40,7 @@ class PrefixMiddleware(object): return self.app(environ, start_response) 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 proxy = PrefixMiddleware()