Browse Source

Removes timestamp from URLs. (#2185)

closed-social-v3
Ash Furrow 7 years ago
committed by Eugen
parent
commit
66b39ccaed
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      config/initializers/paperclip.rb

+ 1
- 0
config/initializers/paperclip.rb View File

@ -18,6 +18,7 @@ if ENV['S3_ENABLED'] == 'true'
Paperclip::Attachment.default_options[:s3_headers] = { 'Cache-Control' => 'max-age=315576000' }
Paperclip::Attachment.default_options[:s3_permissions] = ENV.fetch('S3_PERMISSION') { 'public-read' }
Paperclip::Attachment.default_options[:s3_region] = ENV.fetch('S3_REGION') { 'us-east-1' }
Paperclip::Attachment.default_options[:use_timestamp] = false
Paperclip::Attachment.default_options[:s3_credentials] = {
bucket: ENV.fetch('S3_BUCKET'),

Loading…
Cancel
Save