diff options
author | Effy Elden <git@effy.is> | 2017-01-15 20:58:46 +1100 |
---|---|---|
committer | Effy Elden <git@effy.is> | 2017-01-15 20:58:46 +1100 |
commit | a097dd489b8530c179ecc65dba60fe06ed66ea3b (patch) | |
tree | 5f81925016dd595ba3a9e3e76a308cd9296a2b9e /config/initializers | |
parent | 777f527d86f8b0e541571b4f73fa4035010e3c65 (diff) |
Change default S3 ACL string used by Paperclip from 'public' (which is invalid) to 'public-read'
Diffstat (limited to 'config/initializers')
-rw-r--r-- | config/initializers/paperclip.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/config/initializers/paperclip.rb b/config/initializers/paperclip.rb index 999ff47c7..71a7b514e 100644 --- a/config/initializers/paperclip.rb +++ b/config/initializers/paperclip.rb @@ -11,7 +11,7 @@ if ENV['S3_ENABLED'] == 'true' Paperclip::Attachment.default_options[:s3_host_name] = ENV.fetch('S3_HOSTNAME') { "s3-#{ENV.fetch('S3_REGION')}.amazonaws.com" } Paperclip::Attachment.default_options[:path] = '/:class/:attachment/:id_partition/:style/:filename' Paperclip::Attachment.default_options[:s3_headers] = { 'Cache-Control' => 'max-age=315576000', 'Expires' => 10.years.from_now.httpdate } - Paperclip::Attachment.default_options[:s3_permissions] = 'public' + Paperclip::Attachment.default_options[:s3_permissions] = 'public-read' Paperclip::Attachment.default_options[:s3_region] = ENV.fetch('S3_REGION') { 'us-east-1' } Paperclip::Attachment.default_options[:s3_credentials] = { |