From e9a39e257109fc25d21f9231026c186ecc566125 Mon Sep 17 00:00:00 2001 From: Pete Matsyburka Date: Wed, 24 Dec 2025 15:55:42 +0200 Subject: [PATCH] add s3 endpoint variable --- config/storage.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/config/storage.yml b/config/storage.yml index 389cffd1..0994f8b9 100644 --- a/config/storage.yml +++ b/config/storage.yml @@ -9,6 +9,10 @@ aws_s3: secret_access_key: <%= ENV['AWS_SECRET_ACCESS_KEY'] %> region: <%= ENV['AWS_REGION'] || 'us-east-1' %> bucket: <%= ENV['S3_ATTACHMENTS_BUCKET'] %> + <% if !ENV['S3_ENDPOINT'].to_s.empty? %> + endpoint: <%= ENV['S3_ENDPOINT'] %> + force_path_style: true + <% end %> public: <%= ENV['ACTIVE_STORAGE_PUBLIC'] == 'true' %> upload: cache_control: 'public, max-age=31536000'