mirror of
https://github.com/GSA/notifications-api.git
synced 2025-12-21 16:01:15 -05:00
Once removal of code that uses existing alpha is done, then duplicated code from /notifications/sms and the new endpoint can be merged. Job id is now avaiable in notificaiton but is not used yet.
48 lines
1.3 KiB
Python
48 lines
1.3 KiB
Python
import os
|
|
|
|
|
|
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'
|
|
NOTIFY_DATA_API_URL = os.getenv('NOTIFY_API_URL', "http://localhost:6001")
|
|
NOTIFY_DATA_API_AUTH_TOKEN = os.getenv('NOTIFY_API_TOKEN', "dev-token")
|
|
ADMIN_CLIENT_USER_NAME = None
|
|
ADMIN_CLIENT_SECRET = None
|
|
DELIVERY_CLIENT_USER_NAME = None
|
|
DELIVERY_CLIENT_SECRET = None
|
|
|
|
AWS_REGION = 'eu-west-1'
|
|
NOTIFY_JOB_QUEUE = os.getenv('NOTIFY_JOB_QUEUE', 'notify-jobs-queue')
|
|
# Notification Queue names are a combination of a prefx plus a name
|
|
NOTIFICATION_QUEUE_PREFIX = 'notification'
|
|
|
|
|
|
class Development(Config):
|
|
DEBUG = True
|
|
SECRET_KEY = 'secret-key'
|
|
DANGEROUS_SALT = 'dangerous-salt'
|
|
ADMIN_CLIENT_USER_NAME = 'dev-notify-admin'
|
|
ADMIN_CLIENT_SECRET = 'dev-notify-secret-key'
|
|
DELIVERY_CLIENT_USER_NAME = 'dev-notify-delivery'
|
|
DELIVERY_CLIENT_SECRET = 'dev-notify-secret-key'
|
|
|
|
|
|
class Test(Development):
|
|
SQLALCHEMY_DATABASE_URI = 'postgresql://localhost/test_notification_api'
|
|
|
|
|
|
class Live(Config):
|
|
pass
|
|
|
|
|
|
configs = {
|
|
'development': Development,
|
|
'test': Test,
|
|
'live': Live,
|
|
}
|