mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-27 01:43:22 +00:00
Merge pull request #3763 from coopdevs/allow-passing-s3-region
Allow passing s3 region
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
require_relative 'spree'
|
||||
|
||||
# See: https://github.com/yob/db2fog
|
||||
DB2Fog.config = {
|
||||
:aws_access_key_id => Spree::Config[:s3_access_key],
|
||||
@@ -5,3 +7,5 @@ DB2Fog.config = {
|
||||
:directory => ENV['S3_BACKUPS_BUCKET'],
|
||||
:provider => 'AWS'
|
||||
}
|
||||
|
||||
DB2Fog.config[:region] = ENV['S3_REGION'] if ENV['S3_REGION']
|
||||
|
||||
Reference in New Issue
Block a user