From 13e2466b8555493cdac909f26912876e3aaf1568 Mon Sep 17 00:00:00 2001 From: Christian Lautier <15379878+maatinito@users.noreply.github.com> Date: Thu, 21 Nov 2024 07:14:03 -1000 Subject: [PATCH] New files in S3 storage are now mirrored in new S3 storage --- config/storage.yml | 11 ++++++++++- docker-compose.yml | 10 ++++++++++ 2 files changed, 20 insertions(+), 1 deletion(-) diff --git a/config/storage.yml b/config/storage.yml index b04e0de3a68..5e0353253f0 100644 --- a/config/storage.yml +++ b/config/storage.yml @@ -22,6 +22,15 @@ s3: region: "<%= ENV['S3_REGION'] %>" force_path_style: true +S3_NEW: + service: S3 + endpoint: "<%= ENV['S3_NEW_ENDPOINT'] %>" + bucket: "<%= ENV.fetch('S3_NEW_BUCKET','') %>" + access_key_id: "<%= ENV['S3_NEW_ACCESS_KEY'] %>" + secret_access_key: "<%= ENV['S3_NEW_SECRET_KEY'] %>" + region: "<%= ENV['S3_NEW_REGION'] %>" + force_path_style: true + local_mirror: service: Mirror primary: local @@ -32,7 +41,7 @@ s3_mirror: service: Mirror primary: s3 mirrors: - - local + - S3_NEW amazon: service: S3 diff --git a/docker-compose.yml b/docker-compose.yml index 2a199ec2cfd..52652ba7f67 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -135,6 +135,11 @@ services: - S3_ENDPOINT - S3_REGION - S3_SECRET_KEY + - S3_NEW_ACCESS_KEY + - S3_NEW_BUCKET + - S3_NEW_ENDPOINT + - S3_NEW_REGION + - S3_NEW_SECRET_KEY - SAML_IDP_CERTIFICATE - SAML_IDP_ENABLED - SAML_IDP_SECRET_KEY @@ -226,6 +231,11 @@ services: - S3_ENDPOINT - S3_REGION - S3_SECRET_KEY + - S3_NEW_ACCESS_KEY + - S3_NEW_BUCKET + - S3_NEW_ENDPOINT + - S3_NEW_REGION + - S3_NEW_SECRET_KEY - SENDINBLUE_API_V3_KEY - SENDINBLUE_BALANCING - SENDINBLUE_BALANCING_VALUE=100