mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-01 02:03:22 +00:00
Allow specifying an alternate region for db2fog backups
This commit is contained in:
@@ -8,4 +8,8 @@ DB2Fog.config = {
|
||||
:provider => 'AWS'
|
||||
}
|
||||
|
||||
DB2Fog.config[:region] = ENV['S3_REGION'] if ENV['S3_REGION']
|
||||
region = ENV['S3_BACKUPS_REGION'] || ENV['S3_REGION']
|
||||
|
||||
# If no region is defined we leave this config key undefined (instead of nil),
|
||||
# so that db2fog correctly applies it's default
|
||||
DB2Fog.config[:region] = region if region
|
||||
|
||||
Reference in New Issue
Block a user