aboutsummaryrefslogtreecommitdiff
path: root/app/jitsi/build/jitsi-videobridge/jvb_run
diff options
context:
space:
mode:
authorQuentin Dufour <quentin@dufour.io>2021-01-31 18:03:55 +0100
committerQuentin Dufour <quentin@dufour.io>2021-01-31 18:03:55 +0100
commit56cf9c1e551c27acc064dde8311a2e577106c9c7 (patch)
tree7cdb4c5b19a0e1e6f05e1ffdc50d19b90cc9df0c /app/jitsi/build/jitsi-videobridge/jvb_run
parenta3f62d1f30e278192b9e36ca007758e686a56ab2 (diff)
downloadinfrastructure-56cf9c1e551c27acc064dde8311a2e577106c9c7.tar.gz
infrastructure-56cf9c1e551c27acc064dde8311a2e577106c9c7.zip
Videobridge doc + debug
Diffstat (limited to 'app/jitsi/build/jitsi-videobridge/jvb_run')
-rwxr-xr-xapp/jitsi/build/jitsi-videobridge/jvb_run10
1 files changed, 10 insertions, 0 deletions
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 \