|
@@ -20,6 +20,7 @@ sys.path.insert(0, os.path.join(os.path.dirname(os.path.abspath(__file__)), "whi
|
|
|
logger = logging.getLogger("dispatcher")
|
|
logger = logging.getLogger("dispatcher")
|
|
|
|
|
|
|
|
LIVEKIT_URL = os.environ.get("LIVEKIT_URL", "ws://localhost:7880")
|
|
LIVEKIT_URL = os.environ.get("LIVEKIT_URL", "ws://localhost:7880")
|
|
|
|
|
+PUBLIC_LIVEKIT_URL = os.environ.get("PUBLIC_LIVEKIT_URL", LIVEKIT_URL)
|
|
|
API_KEY = "devkey"
|
|
API_KEY = "devkey"
|
|
|
API_SECRET = "secretsecretsecretsecretsecret12"
|
|
API_SECRET = "secretsecretsecretsecretsecret12"
|
|
|
|
|
|
|
@@ -73,7 +74,7 @@ async def handle_connect(request: web.Request) -> web.Response:
|
|
|
|
|
|
|
|
return web.json_response({
|
|
return web.json_response({
|
|
|
"room": room_name,
|
|
"room": room_name,
|
|
|
- "url": LIVEKIT_URL,
|
|
|
|
|
|
|
+ "url": PUBLIC_LIVEKIT_URL,
|
|
|
"token": _room_token(room_name, app_identity, can_create=True),
|
|
"token": _room_token(room_name, app_identity, can_create=True),
|
|
|
})
|
|
})
|
|
|
|
|
|