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.
12 lines
232 B
Bash
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 "$@"
|