Fix: User login on production.

This commit is contained in:
2024-11-15 16:02:54 +00:00
parent 21e7154672
commit ac2fc92380
3 changed files with 24 additions and 0 deletions

View File

@@ -31,6 +31,12 @@ class Config:
# MySQL
SQLALCHEMY_DATABASE_URI = os.getenv('SQLALCHEMY_DATABASE_URI')
SQLALCHEMY_TRACK_MODIFICATIONS = False
SQLALCHEMY_ENGINE_OPTIONS = {
'pool_size': 10,
'pool_recycle': 280,
'pool_pre_ping': True,
'pool_timeout': 30,
}
# Auth0
SESSION_COOKIE_SECURE = True
SESSION_COOKIE_HTTPONLY = True