This commit is contained in:
parent
75208ac43d
commit
533c24df26
1 changed files with 2 additions and 1 deletions
|
@ -29,8 +29,9 @@ app.config.update(
|
|||
SQLALCHEMY_DATABASE_URI = snip_config.SNIP_DATABASE_URI,
|
||||
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:
|
||||
app = ProxyFix(app)
|
||||
app.wsgi_app = ProxyFix(app.wsgi_app)
|
||||
|
||||
###################
|
||||
# Setup SQAlchemy #
|
||||
|
|
Loading…
Reference in a new issue