Skip to content
Snippets Groups Projects
Unverified Commit 17159625 authored by Eugen Rochko's avatar Eugen Rochko Committed by GitHub
Browse files

Add `S3_OVERRIDE_PATH_STYLE` environment variable (#12594)

To support Exoscale
parent 7ee6f51b
No related branches found
No related tags found
No related merge requests found
......@@ -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'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment