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.
adney.land
James Adney 1 month ago
parent
commit
b059a98025
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      config/initializers/paperclip.rb

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

@@ -25,6 +25,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,

Loading…
Cancel
Save