From 3ab4482ff7314b21f3a66dc7fcc773c00cdbc29d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Vantomme?= Date: Tue, 10 Jan 2023 17:38:00 +0100 Subject: [PATCH] feat(storage): add S3 storage support --- config/env.example | 6 ++++++ config/storage.yml | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/config/env.example b/config/env.example index 978dfd183..ac24cf09f 100644 --- a/config/env.example +++ b/config/env.example @@ -37,6 +37,12 @@ BASIC_AUTH_PASSWORD="" # (See config/storage.yml for the configuration of each service.) ACTIVE_STORAGE_SERVICE="local" +# Configuration for the S3 storage service (if enabled) +S3_ACCESS_KEY_ID="" +S3_SECRET_ACCESS_KEY="" +S3_REGION="" +S3_BUCKET="" + # Configuration for the OpenStack storage service (if enabled) FOG_OPENSTACK_API_KEY="" FOG_OPENSTACK_USERNAME="" diff --git a/config/storage.yml b/config/storage.yml index b24cd1613..d2b2d241f 100644 --- a/config/storage.yml +++ b/config/storage.yml @@ -13,3 +13,9 @@ openstack: openstack_username: "<%= ENV['FOG_OPENSTACK_USERNAME'] %>" openstack_region: "<%= ENV['FOG_OPENSTACK_REGION'] %>" openstack_temp_url_key: "<%= ENV['FOG_OPENSTACK_TEMP_URL_KEY'] %>" +amazon: + service: S3 + access_key_id: <%= ENV.fetch("S3_ACCESS_KEY_ID", "") %> + secret_access_key: <%= ENV.fetch("S3_SECRET_ACCESS_KEY", "") %> + region: <%= ENV.fetch("S3_REGION", "") %> + bucket: <%= ENV.fetch("S3_BUCKET", "") %>