openvidu-local-deployment/pro/scripts/entrypoint_openvidu.sh
cruizba 80be205267 Refactor entrypoint_openvidu.sh; pro: set container IP as private IP.
In pro local deployment, by using `LIVEKIT_OPENVIDU_NODE_PRIVATE_IP`, the
private IP of the container will be announced as a candidate, allowing
Egress and Ingress traffic to flow through their respective containers,
to openvidu server.
2024-07-10 11:57:48 +02:00

12 lines
232 B
Bash

#!/bin/sh
set -e
if [ "$LAN_PRIVATE_IP" != "none" ]; then
export NODE_IP="$LAN_PRIVATE_IP"
fi
# Configure container private IP as node private IP
export LIVEKIT_OPENVIDU_NODE_PRIVATE_IP="$(hostname -i)"
./livekit-server "$@"