mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2024-12-24 10:34:17 +00:00
Add sql alchemy engine options to common configurations.
This commit is contained in:
parent
65b00e47ed
commit
683bf93782
@ -15,6 +15,7 @@ class Config:
|
||||
MAIL_DEFAULT_SENDER = os.environ.get('MAIL_DEFAULT_SENDER')
|
||||
|
||||
''' ### Flask-SQLAlchemy ### '''
|
||||
SQLALCHEMY_ENGINE_OPTIONS = {'pool_size': 30, 'pool_timeout': 30}
|
||||
SQLALCHEMY_TRACK_MODIFICATIONS = False
|
||||
|
||||
''' ### Opaque ### '''
|
||||
@ -31,8 +32,6 @@ class DevelopmentConfig(Config):
|
||||
DEBUG = True
|
||||
|
||||
''' ### Flask-SQLAlchemy ### '''
|
||||
SQLALCHEMY_ENGINE_OPTIONS = {'pool_size': 30,
|
||||
'pool_timeout': 30}
|
||||
SQLALCHEMY_DATABASE_URI = 'postgresql://{}:{}@db/{}'.format(
|
||||
os.environ.get('POSTGRES_USER'),
|
||||
os.environ.get('POSTGRES_PASSWORD'),
|
||||
|
Loading…
Reference in New Issue
Block a user