From c4fe341a74624628c47613da78930f55b3bf670d Mon Sep 17 00:00:00 2001 From: lebaudantoine Date: Tue, 22 Apr 2025 14:46:58 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7(backend)=20make=20data=20directory?= =?UTF-8?q?=20location=20configurable=20via=20env=20var?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add environment variable to control data directory location when building outside of Docker. Improves flexibility for non-containerized deployments where storing data at filesystem root is inappropriate or undesirable. --- src/backend/meet/settings.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/backend/meet/settings.py b/src/backend/meet/settings.py index 61a335cf..5fb364f2 100755 --- a/src/backend/meet/settings.py +++ b/src/backend/meet/settings.py @@ -23,7 +23,6 @@ from sentry_sdk.integrations.logging import ignore_logger # Build paths inside the project like this: BASE_DIR / 'subdir'. BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) -DATA_DIR = os.path.join("/", "data") def get_release(): @@ -70,6 +69,8 @@ class Base(Configuration): API_VERSION = "v1.0" + DATA_DIR = values.Value(os.path.join("/", "data"), environ_name="DATA_DIR") + # Security ALLOWED_HOSTS = values.ListValue([]) SECRET_KEY = values.Value(None)