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:
voussoir 2022-03-23 14:57:57 -07:00
parent a069cc97cb
commit b78edf8c81
No known key found for this signature in database
GPG key ID: 5F7554F8C26DACCB

View file

@ -2,6 +2,7 @@
This file is the gevent launcher for local / development use.
'''
import gevent.monkey; gevent.monkey.patch_all()
import werkzeug.middleware.proxy_fix
import argparse
import gevent.pywsgi
@ -19,6 +20,7 @@ import ycdl
import backend
site = backend.site
site.wsgi_app = werkzeug.middleware.proxy_fix.ProxyFix(site.wsgi_app)
site.debug = True
####################################################################################################