Skip to content

armgit / meet

Public Imported from GitHub
0

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

✨(backend) allow setting session cookie age via env var

lebaudantoinef1fa99f9186e
diff --git a/src/backend/meet/settings.py b/src/backend/meet/settings.py
index ebb08376..a943c8c9 100755
--- a/src/backend/meet/settings.py
+++ b/src/backend/meet/settings.py
@@ -360,7 +360,9 @@ class Base(Configuration):
# Session
SESSION_ENGINE = "django.contrib.sessions.backends.cache"
SESSION_CACHE_ALIAS = "default"
- SESSION_COOKIE_AGE = 60 * 60 * 12
+ SESSION_COOKIE_AGE = values.PositiveIntegerValue(
+ default=60 * 60 * 12, environ_name="SESSION_COOKIE_AGE", environ_prefix=None
+ )
# OIDC - Authorization Code Flow
OIDC_AUTHENTICATE_CLASS = "lasuite.oidc_login.views.OIDCAuthenticationRequestView"