lib/generators/locomotive/install/templates/carrierwave_aws.rb in locomotivecms-4.1.0.rc1 vs lib/generators/locomotive/install/templates/carrierwave_aws.rb in locomotivecms-4.1.0
- old
+ new
@@ -25,9 +25,14 @@
# Use a different endpoint (eg: another provider such as Exoscale)
if ENV['S3_ENDPOINT'].present?
config.aws_credentials[:endpoint] = ENV['S3_ENDPOINT']
end
+ # For some endpoint like minio you need to rewrite path
+ if ENV['S3_PATH_STYLE'].present?
+ config.aws_credentials[:force_path_style] = ENV['S3_PATH_STYLE']
+ end
+
# Put your CDN host below instead
if ENV['S3_ASSET_HOST_URL'].present?
config.asset_host = ENV['S3_ASSET_HOST_URL']
end