Skip to content
Snippets Groups Projects
Unverified Commit de137e6b authored by Jamie Hoyle's avatar Jamie Hoyle Committed by GitHub
Browse files

Added support for specifying S3 storage classes in environment (#22480)

parent 3f52e717
No related branches found
No related tags found
No related merge requests found
......@@ -90,6 +90,12 @@ if ENV['S3_ENABLED'] == 'true'
)
end
if ENV.has_key?('S3_STORAGE_CLASS')
Paperclip::Attachment.default_options[:s3_headers].merge!(
'X-Amz-Storage-Class' => ENV['S3_STORAGE_CLASS']
)
end
# Some S3-compatible providers might not actually be compatible with some APIs
# used by kt-paperclip, see https://github.com/mastodon/mastodon/issues/16822
if ENV['S3_FORCE_SINGLE_REQUEST'] == 'true'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment