From 60f5c8486bf8b2caea181c41c0ac664484a26bfc Mon Sep 17 00:00:00 2001 From: lebaudantoine Date: Fri, 8 Nov 2024 10:39:43 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=A9=B9(backend)=20add=20missing=20Django?= =?UTF-8?q?=20settings=20for=20cold=20storage=20access?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit After configuring the cold storage infrastructure, I forgot to add Django settings needed to access the configuration. --- src/backend/meet/settings.py | 19 +++++++++++++++++++ src/helm/extra/templates/s3.yaml | 2 +- 2 files changed, 20 insertions(+), 1 deletion(-) diff --git a/src/backend/meet/settings.py b/src/backend/meet/settings.py index d4d3f5d7..d0a7ad34 100755 --- a/src/backend/meet/settings.py +++ b/src/backend/meet/settings.py @@ -119,6 +119,25 @@ class Base(Configuration): }, } + # Media + AWS_S3_ENDPOINT_URL = values.Value( + environ_name="AWS_S3_ENDPOINT_URL", environ_prefix=None + ) + AWS_S3_ACCESS_KEY_ID = values.Value( + environ_name="AWS_S3_ACCESS_KEY_ID", environ_prefix=None + ) + AWS_S3_SECRET_ACCESS_KEY = values.Value( + environ_name="AWS_S3_SECRET_ACCESS_KEY", environ_prefix=None + ) + AWS_S3_REGION_NAME = values.Value( + environ_name="AWS_S3_REGION_NAME", environ_prefix=None + ) + AWS_STORAGE_BUCKET_NAME = values.Value( + "meet-media-storage", + environ_name="AWS_STORAGE_BUCKET_NAME", + environ_prefix=None, + ) + # Internationalization # https://docs.djangoproject.com/en/3.1/topics/i18n/ diff --git a/src/helm/extra/templates/s3.yaml b/src/helm/extra/templates/s3.yaml index 19532e89..6ba05f99 100644 --- a/src/helm/extra/templates/s3.yaml +++ b/src/helm/extra/templates/s3.yaml @@ -5,4 +5,4 @@ metadata: namespace: {{ .Release.Namespace | quote }} spec: provider: data - versioned: true \ No newline at end of file + versioned: true