root(major): fix dbbackup not working with prometheus

This commit is contained in:
Langhammer, Jens 2019-11-19 18:08:25 +01:00
parent 49a347b32f
commit be642bc874
1 changed files with 5 additions and 1 deletions

View File

@ -248,7 +248,11 @@ CELERY_RESULT_BACKEND = (f"redis://:{CONFIG.y('redis.password')}@{CONFIG.y('redi
if CONFIG.y('postgresql.backup'): if CONFIG.y('postgresql.backup'):
INSTALLED_APPS += ['dbbackup'] INSTALLED_APPS += ['dbbackup']
DBBACKUP_STORAGE = 'storages.backends.s3boto3.S3Boto3Storage' DBBACKUP_STORAGE = 'storages.backends.s3boto3.S3Boto3Storage'
DBBACKUP_CONNECTORS = {
'default': {
'CONNECTOR': 'dbbackup.db.postgresql.PgDumpConnector'
}
}
AWS_ACCESS_KEY_ID = CONFIG.y('postgresql.backup.access_key') AWS_ACCESS_KEY_ID = CONFIG.y('postgresql.backup.access_key')
AWS_SECRET_ACCESS_KEY = CONFIG.y('postgresql.backup.secret_key') AWS_SECRET_ACCESS_KEY = CONFIG.y('postgresql.backup.secret_key')
AWS_STORAGE_BUCKET_NAME = CONFIG.y('postgresql.backup.bucket') AWS_STORAGE_BUCKET_NAME = CONFIG.y('postgresql.backup.bucket')