summaryrefslogtreecommitdiffstats
path: root/at.py
diff options
context:
space:
mode:
Diffstat (limited to 'at.py')
-rw-r--r--at.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/at.py b/at.py
index 01347bb..8248bd7 100644
--- a/at.py
+++ b/at.py
@@ -23,6 +23,10 @@ app.jinja_env.add_extension('jinja2.ext.i18n')
app.jinja_env.install_null_translations()
app.updater = None
+if app.config.get('PROXY_FIX'):
+ from werkzeug.contrib.fixers import ProxyFix
+ app.wsgi_app = ProxyFix(app.wsgi_app)
+
auth = SpaceAuth(app)