From 4508c1be51ec1c32154f0d25d764554b03e683a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=20Bol=C3=ADvar?= Date: Thu, 21 Nov 2024 15:59:48 +0100 Subject: [PATCH] Configure public S3 (#579) --- config/secrets.yml | 1 + config/storage.yml | 1 + 2 files changed, 2 insertions(+) diff --git a/config/secrets.yml b/config/secrets.yml index 7dd3d823a..41ec84162 100644 --- a/config/secrets.yml +++ b/config/secrets.yml @@ -97,6 +97,7 @@ storage_default: &storage_default provider: <%= Decidim::Env.new("STORAGE_PROVIDER", "local").to_s %> cdn_host: <%= ENV["STORAGE_CDN_HOST"] %> s3: + public: <%= Decidim::Env.new("AWS_PUBLIC", "false").to_boolean_string %> access_key_id: <%= ENV["AWS_ACCESS_KEY_ID"] %> secret_access_key: <%= ENV["AWS_SECRET_ACCESS_KEY"] %> region: <%= ENV["AWS_REGION"] %> diff --git a/config/storage.yml b/config/storage.yml index 3f3b93c60..67d9905ed 100644 --- a/config/storage.yml +++ b/config/storage.yml @@ -8,6 +8,7 @@ local: s3: service: S3 + public: <%= Rails.application.secrets.dig(:storage, :s3, :public) %> access_key_id: <%= Rails.application.secrets.dig(:storage, :s3, :access_key_id) %> secret_access_key: <%= Rails.application.secrets.dig(:storage, :s3, :secret_access_key) %> bucket: <%= Rails.application.secrets.dig(:storage, :s3, :bucket) %>