mirror of
https://framagit.org/tykayn/mastodon.git
synced 2023-08-25 08:33:12 +02:00
Removes timestamp from URLs. (#2185)
This commit is contained in:
parent
cae2a26ee3
commit
66b39ccaed
@ -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_headers] = { 'Cache-Control' => 'max-age=315576000' }
|
||||||
Paperclip::Attachment.default_options[:s3_permissions] = ENV.fetch('S3_PERMISSION') { 'public-read' }
|
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[:s3_region] = ENV.fetch('S3_REGION') { 'us-east-1' }
|
||||||
|
Paperclip::Attachment.default_options[:use_timestamp] = false
|
||||||
|
|
||||||
Paperclip::Attachment.default_options[:s3_credentials] = {
|
Paperclip::Attachment.default_options[:s3_credentials] = {
|
||||||
bucket: ENV.fetch('S3_BUCKET'),
|
bucket: ENV.fetch('S3_BUCKET'),
|
||||||
|
Loading…
Reference in New Issue
Block a user