Bind v2compatibility to port 4443 in the host, so process in the host can also be used

This commit is contained in:
cruizba 2024-04-11 14:34:36 +02:00
parent 2b357d0d9b
commit 825bf6900f
3 changed files with 5 additions and 3 deletions

View File

@ -37,7 +37,7 @@ const CaddyfileTemplate = `
# OpenVidu v2 API
@openvidu_v2 path /openvidu/api/* /openvidu/ws/*
handle @openvidu_v2 {
reverse_proxy http://openvidu-v2compatibility:5080
reverse_proxy http://host.docker.internal:4443
}
# OpenVidu v2 Custom layout

View File

@ -150,12 +150,14 @@ services:
restart: unless-stopped
container_name: openvidu-v2compatibility
entrypoint: /bin/sh /scripts/entrypoint.sh
ports:
- 4443:4443
environment:
- USE_HTTPS=${USE_HTTPS:-false}
- LAN_DOMAIN=${LAN_DOMAIN:-}
- LAN_MODE=${LAN_MODE:-false}
- LAN_PRIVATE_IP=${LAN_PRIVATE_IP:-}
- SERVER_PORT=5080
- SERVER_PORT=4443
- OPENVIDU_SHIM_SECRET=${OPENVIDU_SHIM_SECRET:-}
- LIVEKIT_URL_PRIVATE=ws://openvidu:7880
- LIVEKIT_API_KEY=${LIVEKIT_API_KEY:-}

View File

@ -29,7 +29,7 @@ keys:
webhook:
api_key: devkey
urls:
- http://openvidu-v2compatibility:5080/livekit
- http://host.docker.internal:4443/livekit
ingress:
rtmp_base_url: rtmp://localhost:1935/rtmp
whip_base_url: http://localhost:8085/whip