Browse Source

use S3 "domain-style" URLs

I couldn't figure out a way to tweak mastodon's env vars
to do this, even though I would expect this to be the default.
v3.0.0-adney.land
James Adney 1 week ago
parent
commit
c9da047c37
1 changed files with 1 additions and 0 deletions
  1. 1
    0
      config/initializers/paperclip.rb

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

@@ -24,6 +24,7 @@ if ENV['S3_ENABLED'] == 'true'
storage: :s3,
s3_protocol: s3_protocol,
s3_host_name: s3_hostname,
url: ':s3_domain_url',
s3_headers: {
'X-Amz-Multipart-Threshold' => ENV.fetch('S3_MULTIPART_THRESHOLD') { 15.megabytes }.to_i,
'Cache-Control' => 'public, max-age=315576000, immutable',

Loading…
Cancel
Save