🔧(backend) add LiveKit API secret/key pair in Django settings

When starting the LiveKit server using the '--dev' option, the server uses
defaults secret/key pair according to the documentation.

Make sure the Django settings and de facto the environment variable match
these defaults.

Please have a look at the documentation page here:
https://docs.livekit.io/home/self-hosting/local/
This commit is contained in:
lebaudantoine
2024-06-25 18:23:55 +02:00
parent e66dbd163a
commit b3de3f5e92
2 changed files with 10 additions and 0 deletions

View File

@@ -39,3 +39,7 @@ LOGOUT_REDIRECT_URL=http://localhost:3000
OIDC_REDIRECT_ALLOWED_HOSTS=["http://localhost:8083", "http://localhost:3000"]
OIDC_AUTH_REQUEST_EXTRA_PARAMS={"acr_values": "eidas1"}
# Livekit Token settings
LIVEKIT_API_SECRET="secret"
LIVEKIT_API_KEY="devkey"

View File

@@ -369,6 +369,12 @@ class Base(Configuration):
)
# Video conference configuration
LIVEKIT_CONFIGURATION = {
"api_key": values.Value(environ_name="LIVEKIT_API_KEY", environ_prefix=None),
"api_secret": values.Value(
environ_name="LIVEKIT_API_SECRET", environ_prefix=None
),
}
DEFAULT_ROOM_IS_PUBLIC = values.BooleanValue(
True, environ_name="MAGNIFY_DEFAULT_ROOM_IS_PUBLIC", environ_prefix=None
)