Apply werkzeug ProxyFix so that request.remote_addr is correct.

This commit is contained in:
voussoir 2018-01-17 20:53:25 -08:00
parent 7352d1e141
commit b00d93901a

View file

@ -12,6 +12,11 @@ import gevent.pywsgi
import gevent.wsgi
import sys
import werkzeug.contrib.fixers
etiquette_flask.site.wsgi_app = werkzeug.contrib.fixers.ProxyFix(etiquette_flask.site.wsgi_app)
if len(sys.argv) == 2:
port = int(sys.argv[1])
else: