Fix ProxyFix
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Armin Friedl 2020-11-09 08:16:49 +01:00
parent 75208ac43d
commit 533c24df26

View file

@ -29,8 +29,9 @@ app.config.update(
SQLALCHEMY_DATABASE_URI = snip_config.SNIP_DATABASE_URI, SQLALCHEMY_DATABASE_URI = snip_config.SNIP_DATABASE_URI,
SQLALCHEMY_TRACK_MODIFICATIONS = snip_config.SNIP_DATABASE_TRACK_MODIFICATION) SQLALCHEMY_TRACK_MODIFICATIONS = snip_config.SNIP_DATABASE_TRACK_MODIFICATION)
# Needed to set proto and root url in reverse proxy environment
if snip_config.SNIP_FLASK_PROXYFIX: if snip_config.SNIP_FLASK_PROXYFIX:
app = ProxyFix(app) app.wsgi_app = ProxyFix(app.wsgi_app)
################### ###################
# Setup SQAlchemy # # Setup SQAlchemy #