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) %>