Skip to content

armgit / meet

Public Imported from GitHub
0

Open source video conferencing app powered by LiveKit. Built with Django and React.

🔧(backend) make data directory location configurable via env var

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