'''
This file is the WSGI entrypoint for remote / production use.

If you are using Gunicorn, for example:
gunicorn etiquette_flask_entrypoint:site --bind "0.0.0.0:PORT" --access-logfile "-"
'''
import werkzeug.contrib.fixers

import backend

backend.site.wsgi_app = werkzeug.contrib.fixers.ProxyFix(backend.site.wsgi_app)

site = backend.site

@@ -204,30 +204,36 @@
 erkzeug.
-contrib.fixers
+middleware.proxy_fix
 %0A%0Aimport
@@ -279,22 +279,28 @@
 eug.
-contrib.fixers
+middleware.proxy_fix
 .Pro

Replace werkzeug.contrib with werkzeug.middleware proxyfix.