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:58:00 -07:00
parent 0d134b581b
commit f7c51f394d
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
@ -18,6 +19,7 @@ import etiquette
import backend
site = backend.site
site.wsgi_app = werkzeug.middleware.proxy_fix.ProxyFix(site.wsgi_app)
site.debug = True
HTTPS_DIR = pathclass.Path(__file__).parent.with_child('https')