2020-03-22 18:47:10 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
cat >> /etc/hosts <<EOF
|
|
|
|
${JITSI_PROSODY_HOST} jitsi.deuxfleurs.fr conference.jitsi.deuxfleurs.fr jitsi-videobridge.jitsi.deuxfleurs.fr focus.jitsi.deuxfleurs.fr auth.jitsi.deuxfleurs.fr
|
2020-03-27 08:02:49 +00:00
|
|
|
127.0.0.1 `hostname`
|
2020-03-22 18:47:10 +00:00
|
|
|
EOF
|
|
|
|
|
2020-03-27 22:27:52 +00:00
|
|
|
mkdir -p /root/.sip-communicator
|
2020-03-22 18:47:10 +00:00
|
|
|
|
2020-03-27 22:27:52 +00:00
|
|
|
cat > /root/.sip-communicator/sip-communicator.properties <<EOF
|
2020-03-22 18:47:10 +00:00
|
|
|
org.jitsi.impl.neomedia.transform.srtp.SRTPCryptoContext.checkReplay=false
|
|
|
|
# The videobridge uses 443 by default with 4443 as a fallback, but since we're already
|
|
|
|
# running nginx on 443 in this example doc, we specify 4443 manually to avoid a race condition
|
|
|
|
org.jitsi.videobridge.TCP_HARVESTER_PORT=4443
|
|
|
|
org.ice4j.ice.harvest.NAT_HARVESTER_LOCAL_ADDRESS=${JITSI_NAT_LOCAL_IP}
|
|
|
|
org.ice4j.ice.harvest.NAT_HARVESTER_PUBLIC_ADDRESS=${JITSI_NAT_PUBLIC_IP}
|
2020-03-27 21:48:12 +00:00
|
|
|
org.jitsi.videobridge.NAT_HARVESTER_LOCAL_ADDRESS=${JITSI_NAT_LOCAL_IP}
|
|
|
|
org.jitsi.videobridge.NAT_HARVESTER_PUBLIC_ADDRESS=${JITSI_NAT_PUBLIC_IP}
|
2020-03-22 18:47:10 +00:00
|
|
|
EOF
|
|
|
|
|
2020-03-27 22:27:52 +00:00
|
|
|
/srv/jvb/jvb.sh \
|
2020-03-22 18:47:10 +00:00
|
|
|
--host=${JITSI_PROSODY_HOST} \
|
|
|
|
--domain=jitsi.deuxfleurs.fr \
|
|
|
|
--port=5347 \
|
|
|
|
--secret=${JITSI_SECRET_VIDEOBRIDGE}
|