Add WSGI ProxyFix.

This commit is contained in:
Edward Betts 2026-02-27 20:33:29 +00:00
parent 17df83d043
commit 335c31937e

12
web/wsgi.py Normal file
View file

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