mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-08 22:56:06 +00:00
Merge pull request #3764 from Matt-Yorkley/s3_backups_without_images
Don't use s3 for images unless images bucket has been provisioned.
This commit is contained in:
@@ -25,7 +25,7 @@ Spree.config do |config|
|
||||
config.s3_bucket = ENV['S3_BUCKET'] if ENV['S3_BUCKET']
|
||||
config.s3_access_key = ENV['S3_ACCESS_KEY'] if ENV['S3_ACCESS_KEY']
|
||||
config.s3_secret = ENV['S3_SECRET'] if ENV['S3_SECRET']
|
||||
config.use_s3 = true if ENV['S3_ACCESS_KEY'] && ENV['S3_SECRET']
|
||||
config.use_s3 = true if ENV['S3_BUCKET']
|
||||
config.s3_protocol = ENV.fetch('S3_PROTOCOL', 'https')
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user