Apply werkzeug ProxyFix so that request.remote_addr is correct.
This commit is contained in:
parent
7352d1e141
commit
b00d93901a
1 changed files with 5 additions and 0 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue