Change to switch signature version for Amazon S3 (#2124)
This commit is contained in:
committed by
Eugen
parent
8bac0350d1
commit
8b8e140c71
@ -28,6 +28,7 @@ if ENV['S3_ENABLED'] == 'true'
|
||||
unless ENV['S3_ENDPOINT'].blank?
|
||||
Paperclip::Attachment.default_options[:s3_options] = {
|
||||
endpoint: ENV['S3_ENDPOINT'],
|
||||
signature_version: ENV['S3_SIGNATURE_VERSION'] || 'v4',
|
||||
force_path_style: true,
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user