mirror of
https://github.com/simple-login/app.git
synced 2024-09-20 15:05:59 +08:00
set OAUTHLIB_INSECURE_TRANSPORT=1
This commit is contained in:
parent
a00a03f51c
commit
80d9a6a400
|
@ -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():
|
||||
|
|
Loading…
Reference in a new issue