lib/generators/locomotive/install/templates/carrierwave_aws.rb in locomotivecms-4.0.0 vs lib/generators/locomotive/install/templates/carrierwave_aws.rb in locomotivecms-4.0.1

- old
+ new

@@ -20,9 +20,14 @@ access_key_id: ENV['S3_KEY_ID'], secret_access_key: ENV['S3_SECRET_KEY'], region: ENV['S3_BUCKET_REGION'] } + # Use a different endpoint (eg: another provider such as Exoscale) + if ENV['S3_ENDPOINT'].present? + config.aws_credentials[:endpoint] = ENV['S3_ENDPOINT'] + end + # Put your CDN host below instead if ENV['S3_ASSET_HOST_URL'].present? config.asset_host = ENV['S3_ASSET_HOST_URL'] end