From 56cf9c1e551c27acc064dde8311a2e577106c9c7 Mon Sep 17 00:00:00 2001 From: Quentin Dufour Date: Sun, 31 Jan 2021 18:03:55 +0100 Subject: Videobridge doc + debug --- app/jitsi/build/jitsi-videobridge/jvb_run | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'app/jitsi/build') diff --git a/app/jitsi/build/jitsi-videobridge/jvb_run b/app/jitsi/build/jitsi-videobridge/jvb_run index 39668a8..3a78c46 100755 --- a/app/jitsi/build/jitsi-videobridge/jvb_run +++ b/app/jitsi/build/jitsi-videobridge/jvb_run @@ -1,6 +1,16 @@ #!/bin/bash update-ca-certificates -f +if [ -z "${JITSI_NAT_LOCAL_IP}" ]; then + JITSI_NAT_LOCAL_IP=$(ip route get $(ip route show 0.0.0.0/0 | grep -oP 'via \K\S+') | grep -oP 'src \K\S+') +fi + +if [ -z "${JITSI_NAT_PUBLIC_IP}" ]; then + JITSI_NAT_PUBLIC_IP=$(curl https://ifconfig.me) +fi + +echo "NAT config: ${JITSI_NAT_LOCAL_IP} -> ${JITSI_NAT_PUBLIC_IP}" + exec java \ -Xmx3072m \ -XX:+UseConcMarkSweepGC \ -- cgit v1.2.3