about summary refs log tree commit diff
path: root/config/initializers
diff options
context:
space:
mode:
authorYamagishi Kazutoshi <ykzts@desire.sh>2019-09-23 22:37:45 +0900
committerEugen Rochko <eugen@zeonfederated.com>2019-09-23 15:37:45 +0200
commit172eaeba3fd217228dead279712aecce8c3ac080 (patch)
tree1a661c701736bd98341b2679c17eb57f2e40bcea /config/initializers
parent637cc7bf78d054c8e8cb5ab9fa6e63bac0dfd555 (diff)
Add config of multipart threshold for S3 (#11924)
Diffstat (limited to 'config/initializers')
-rw-r--r--config/initializers/paperclip.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/config/initializers/paperclip.rb b/config/initializers/paperclip.rb
index ce4185e02..cfc95330c 100644
--- a/config/initializers/paperclip.rb
+++ b/config/initializers/paperclip.rb
@@ -25,6 +25,7 @@ if ENV['S3_ENABLED'] == 'true'
     s3_protocol: s3_protocol,
     s3_host_name: s3_hostname,
     s3_headers: {
+      'X-Amz-Multipart-Threshold' => ENV.fetch('S3_MULTIPART_THRESHOLD') { 15.megabytes },
       'Cache-Control' => 'public, max-age=315576000, immutable',
     },
     s3_permissions: ENV.fetch('S3_PERMISSION') { 'public-read' },