Add WSGI ProxyFix.
This commit is contained in:
parent
17df83d043
commit
335c31937e
1 changed files with 12 additions and 0 deletions
12
web/wsgi.py
Normal file
12
web/wsgi.py
Normal 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,
|
||||||
|
)
|
||||||
Loading…
Add table
Add a link
Reference in a new issue