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.
master
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
1 changed files with 2 additions and 0 deletions

View File

@ -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
@ -18,6 +19,7 @@ import etiquette
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
HTTPS_DIR = pathclass.Path(__file__).parent.with_child('https') HTTPS_DIR = pathclass.Path(__file__).parent.with_child('https')