mirror of
https://github.com/GSA/notifications-api.git
synced 2025-12-12 00:02:36 -05:00
34 lines
799 B
Python
34 lines
799 B
Python
class Config(object):
|
|
DEBUG = False
|
|
NOTIFY_LOG_LEVEL = 'DEBUG'
|
|
NOTIFY_APP_NAME = 'api'
|
|
NOTIFY_LOG_PATH = '/var/log/notify/application.log'
|
|
SQLALCHEMY_COMMIT_ON_TEARDOWN = False
|
|
SQLALCHEMY_RECORD_QUERIES = True
|
|
SQLALCHEMY_DATABASE_URI = 'postgresql://localhost/notification_api'
|
|
|
|
|
|
class Development(Config):
|
|
DEBUG = True
|
|
SECRET_KEY = 'secret-key'
|
|
DANGEROUS_SALT = 'dangerous-salt'
|
|
ADMIN_USER_EMAIL_ADDRESS = 'dev-notify-admin@digital.cabinet-office.gov.uk'
|
|
|
|
|
|
class Test(Config):
|
|
DEBUG = True
|
|
SQLALCHEMY_DATABASE_URI = 'postgresql://localhost/test_notification_api'
|
|
SECRET_KEY = 'secret-key'
|
|
DANGEROUS_SALT = 'dangerous-salt'
|
|
|
|
|
|
class Live(Config):
|
|
pass
|
|
|
|
|
|
configs = {
|
|
'development': Development,
|
|
'test': Test,
|
|
'live': Live,
|
|
}
|