Browse Source

Add `S3_OVERRIDE_PATH_STYLE` environment variable (#12594)

To support Exoscale
master
Eugen Rochko 4 years ago
committed by GitHub
parent
commit
17159625b3
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      config/initializers/paperclip.rb

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

@ -52,7 +52,7 @@ if ENV['S3_ENABLED'] == 'true'
if ENV.has_key?('S3_ENDPOINT')
Paperclip::Attachment.default_options[:s3_options].merge!(
endpoint: ENV['S3_ENDPOINT'],
force_path_style: true
force_path_style: ENV['S3_OVERRIDE_PATH_STYLE'] != 'true',
)
Paperclip::Attachment.default_options[:url] = ':s3_path_url'

Loading…
Cancel
Save