2020-03-22 18:47:10 +00:00
|
|
|
#!/bin/bash
|
2021-01-29 17:59:19 +00:00
|
|
|
update-ca-certificates -f
|
|
|
|
|
2021-01-31 17:03:55 +00:00
|
|
|
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}"
|
|
|
|
|
2021-01-29 17:59:19 +00:00
|
|
|
exec java \
|
2021-12-12 12:03:45 +00:00
|
|
|
-Dlog4j2.formatMsgNoLookups=true \
|
2021-01-29 17:59:19 +00:00
|
|
|
-Djdk.tls.ephemeralDHKeySize=2048 \
|
|
|
|
-Djava.util.logging.config.file=/usr/share/jvb/lib/logging.properties \
|
|
|
|
-Dconfig.file=/etc/jitsi/videobridge.conf \
|
2021-01-29 18:22:16 +00:00
|
|
|
-Dorg.ice4j.ice.harvest.NAT_HARVESTER_LOCAL_ADDRESS=${JITSI_NAT_LOCAL_IP} \
|
|
|
|
-Dorg.ice4j.ice.harvest.NAT_HARVESTER_PUBLIC_ADDRESS=${JITSI_NAT_PUBLIC_IP} \
|
2021-01-29 17:59:19 +00:00
|
|
|
-cp '/usr/share/jvb/jitsi-videobridge.jar:/usr/share/jvb/lib/*' \
|
2021-02-01 06:48:50 +00:00
|
|
|
org.jitsi.videobridge.MainKt
|