From 335c31937e61549883a4b1fef2c97d0abb88270e Mon Sep 17 00:00:00 2001 From: Edward Betts Date: Fri, 27 Feb 2026 20:33:29 +0000 Subject: [PATCH] Add WSGI ProxyFix. --- web/wsgi.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 web/wsgi.py diff --git a/web/wsgi.py b/web/wsgi.py new file mode 100644 index 0000000..33d9ce9 --- /dev/null +++ b/web/wsgi.py @@ -0,0 +1,12 @@ +from werkzeug.middleware.proxy_fix import ProxyFix + +from web.app import app + +# Wrap the app without modifying app.py +app.wsgi_app = ProxyFix( + app.wsgi_app, + x_for=1, + x_proto=1, + x_host=1, + x_prefix=1, +)