Add proxyfix to the dev server as well.
Obviously the dev server shouldn't be used in prod, but when testing it's helpful for them to behave a little more similarly.
This commit is contained in:
parent
a069cc97cb
commit
b78edf8c81
1 changed files with 2 additions and 0 deletions
|
@ -2,6 +2,7 @@
|
||||||
This file is the gevent launcher for local / development use.
|
This file is the gevent launcher for local / development use.
|
||||||
'''
|
'''
|
||||||
import gevent.monkey; gevent.monkey.patch_all()
|
import gevent.monkey; gevent.monkey.patch_all()
|
||||||
|
import werkzeug.middleware.proxy_fix
|
||||||
|
|
||||||
import argparse
|
import argparse
|
||||||
import gevent.pywsgi
|
import gevent.pywsgi
|
||||||
|
@ -19,6 +20,7 @@ import ycdl
|
||||||
import backend
|
import backend
|
||||||
|
|
||||||
site = backend.site
|
site = backend.site
|
||||||
|
site.wsgi_app = werkzeug.middleware.proxy_fix.ProxyFix(site.wsgi_app)
|
||||||
site.debug = True
|
site.debug = True
|
||||||
|
|
||||||
####################################################################################################
|
####################################################################################################
|
||||||
|
|
Loading…
Reference in a new issue