Add config of multipart threshold for S3 (#11924)

This commit is contained in:
Yamagishi Kazutoshi authored and Eugen Rochko committed 2019-09-23 15:37:45 +02:00
1 parent 637cc7bf78
commit 172eaeba3f
3 files changed
+44 -1

No files matched your search

+1
View File
@@ -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' },