Fallback to AWS_BUCKET env var in settings for backwards compatiblity

This commit is contained in:
Simon Detheridge 2020-08-10 11:55:39 +01:00
parent a18146612a
commit e4d7c253c0

View file

@ -21,7 +21,7 @@ const Settings = {
healthCheck: {
project_id: process.env.HEALTH_CHECK_PROJECT_ID
},
bucket: process.env.BUCKET_NAME || 'bucket',
bucket: process.env.BUCKET_NAME || process.env.AWS_BUCKET || 'bucket',
gcs: {
unlockBeforeDelete: process.env.GCS_UNLOCK_BEFORE_DELETE === 'true',
deletedBucketSuffix: process.env.GCS_DELETED_BUCKET_SUFFIX,