set OAUTHLIB_INSECURE_TRANSPORT=1

This commit is contained in:
Son NK 2019-07-07 23:25:58 +02:00
parent a00a03f51c
commit 80d9a6a400
1 changed files with 3 additions and 2 deletions

View File

@ -48,6 +48,9 @@ if ENABLE_SENTRY:
integrations=[FlaskIntegration()],
)
# the app is served behin nginx which uses http and not https
os.environ["OAUTHLIB_INSECURE_TRANSPORT"] = "1"
def create_app() -> Flask:
app = Flask(__name__)
@ -274,8 +277,6 @@ if __name__ == "__main__":
# enable to print all queries generated by sqlalchemy
# app.config["SQLALCHEMY_ECHO"] = True
os.environ["OAUTHLIB_INSECURE_TRANSPORT"] = "1"
if ENV == "local":
LOG.d("reset db, add fake data")
with app.app_context():