diff options
author | Quentin Dufour <quentin@dufour.io> | 2021-01-31 18:03:55 +0100 |
---|---|---|
committer | Quentin Dufour <quentin@dufour.io> | 2021-01-31 18:03:55 +0100 |
commit | 56cf9c1e551c27acc064dde8311a2e577106c9c7 (patch) | |
tree | 7cdb4c5b19a0e1e6f05e1ffdc50d19b90cc9df0c /app/jitsi/build | |
parent | a3f62d1f30e278192b9e36ca007758e686a56ab2 (diff) | |
download | infrastructure-56cf9c1e551c27acc064dde8311a2e577106c9c7.tar.gz infrastructure-56cf9c1e551c27acc064dde8311a2e577106c9c7.zip |
Videobridge doc + debug
Diffstat (limited to 'app/jitsi/build')
-rwxr-xr-x | app/jitsi/build/jitsi-videobridge/jvb_run | 10 |
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 \ |