logo

mastofe

My custom branche(s) on git.pleroma.social/pleroma/mastofe
commit: 66b39ccaedd86030e0f1299b52b6daab43560b18
parent: cae2a26ee374ea2bd5330e695610c1e15969f9a2
Author: Ash Furrow <ash@ashfurrow.com>
Date:   Wed, 19 Apr 2017 21:54:24 -0400

Removes timestamp from URLs. (#2185)


Diffstat:

Mconfig/initializers/paperclip.rb1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/config/initializers/paperclip.rb b/config/initializers/paperclip.rb @@ -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'),