🐛(backend) resolve backchannel calls to LiveKit in docker-compose
Fix container networking issue where app-dev container couldn't resolve localhost address when calling LiveKit API. Update configuration to use proper container network addressing for backchannel communication between services.
This commit is contained in:
@@ -72,6 +72,8 @@ services:
|
|||||||
- nginx
|
- nginx
|
||||||
- livekit
|
- livekit
|
||||||
- createbuckets
|
- createbuckets
|
||||||
|
extra_hosts:
|
||||||
|
- "127.0.0.1.nip.io:host-gateway"
|
||||||
|
|
||||||
celery-dev:
|
celery-dev:
|
||||||
user: ${DOCKER_USER:-1000}
|
user: ${DOCKER_USER:-1000}
|
||||||
|
|||||||
@@ -48,7 +48,8 @@ OIDC_AUTH_REQUEST_EXTRA_PARAMS={"acr_values": "eidas1"}
|
|||||||
# Livekit Token settings
|
# Livekit Token settings
|
||||||
LIVEKIT_API_SECRET=secret
|
LIVEKIT_API_SECRET=secret
|
||||||
LIVEKIT_API_KEY=devkey
|
LIVEKIT_API_KEY=devkey
|
||||||
LIVEKIT_API_URL=http://localhost:7880
|
LIVEKIT_API_URL=http://127.0.0.1.nip.io:7880
|
||||||
|
LIVEKIT_VERIFY_SSL=False
|
||||||
ALLOW_UNREGISTERED_ROOMS=False
|
ALLOW_UNREGISTERED_ROOMS=False
|
||||||
|
|
||||||
# Recording
|
# Recording
|
||||||
|
|||||||
@@ -45,9 +45,11 @@ def test_create_livekit_client_ssl_disabled(
|
|||||||
@mock.patch("asyncio.get_running_loop")
|
@mock.patch("asyncio.get_running_loop")
|
||||||
@mock.patch("core.utils.LiveKitAPI")
|
@mock.patch("core.utils.LiveKitAPI")
|
||||||
def test_create_livekit_client_custom_configuration(
|
def test_create_livekit_client_custom_configuration(
|
||||||
mock_livekit_api, mock_get_running_loop
|
mock_livekit_api, mock_get_running_loop, settings
|
||||||
):
|
):
|
||||||
"""Test LiveKitAPI client creation with custom configuration."""
|
"""Test LiveKitAPI client creation with custom configuration."""
|
||||||
|
settings.LIVEKIT_VERIFY_SSL = True
|
||||||
|
|
||||||
mock_get_running_loop.return_value = mock.MagicMock()
|
mock_get_running_loop.return_value = mock.MagicMock()
|
||||||
custom_configuration = {
|
custom_configuration = {
|
||||||
"api_key": "mock_key",
|
"api_key": "mock_key",
|
||||||
|
|||||||
Reference in New Issue
Block a user