diff options
-rw-r--r-- | at.cfg.dist | 2 | ||||
-rw-r--r-- | at.py | 4 |
2 files changed, 6 insertions, 0 deletions
diff --git a/at.cfg.dist b/at.cfg.dist index c37efdf..b2e0720 100644 --- a/at.cfg.dist +++ b/at.cfg.dist @@ -17,3 +17,5 @@ SPECIAL_DEVICES = { } SECRET_KEY = 'adaba' + +PROXY_FIX = False @@ -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) |