Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 0999f2ec45 |
@@ -57,6 +57,7 @@ OIDC_RS_CLIENT_SECRET=ThisIsAnExampleKeyForDevPurposeOnly
|
||||
LIVEKIT_API_SECRET=secret
|
||||
LIVEKIT_API_KEY=devkey
|
||||
LIVEKIT_API_URL=http://127.0.0.1.nip.io:7880
|
||||
LIVEKIT_INTERNAL_URL=http://livekit:7880
|
||||
LIVEKIT_VERIFY_SSL=False
|
||||
ALLOW_UNREGISTERED_ROOMS=False
|
||||
|
||||
|
||||
@@ -212,7 +212,11 @@ def create_livekit_client(custom_configuration=None):
|
||||
custom_session = aiohttp.ClientSession(connector=connector)
|
||||
|
||||
# Use default configuration if none provided
|
||||
configuration = custom_configuration or settings.LIVEKIT_CONFIGURATION
|
||||
configuration = {
|
||||
**(custom_configuration or settings.LIVEKIT_CONFIGURATION),
|
||||
"url": settings.LIVEKIT_INTERNAL_URL
|
||||
or (custom_configuration or settings.LIVEKIT_CONFIGURATION)["url"],
|
||||
}
|
||||
|
||||
return LiveKitAPI(session=custom_session, **configuration)
|
||||
|
||||
|
||||
@@ -619,6 +619,11 @@ class Base(Configuration):
|
||||
),
|
||||
"url": values.Value(environ_name="LIVEKIT_API_URL", environ_prefix=None),
|
||||
}
|
||||
# Internal URL for server-to-server LiveKit API calls (e.g. container-to-container).
|
||||
# Defaults to LIVEKIT_API_URL when not set.
|
||||
LIVEKIT_INTERNAL_URL = values.Value(
|
||||
"", environ_name="LIVEKIT_INTERNAL_URL", environ_prefix=None
|
||||
)
|
||||
LIVEKIT_FORCE_WSS_PROTOCOL = values.BooleanValue(
|
||||
False, environ_name="LIVEKIT_FORCE_WSS_PROTOCOL", environ_prefix=None
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user