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