Scaling Up Your Jitsi with Jitsi Bridges

sudo hostnamectl set-hostname jitsibridge1.YOUR_DOMAIN
jitsibridge1.YOUR_DOMAIN
127.0.0.1             localhostYOUR_LOCAL_IP_IF_ANY  jitsibridge1.YOUR_DOMAIN  jitsibridge1YOUR_PUBLIC_IP        jitsibridge1.YOUR_DOMAIN  jitsibridge1127.0.0.1             localhost                 jitsibridge1.YOUR_DOMAIN# The following lines are desirable for IPv6 capable hosts::1     localhost ip6-localhost ip6-loopbackff02::1 ip6-allnodesff02::2 ip6-allrouters
reboot
ping "$(hostname)"
PING jitsibridge1.YOUR_DOMAIN (127.0.0.1) 56(84) bytes of data.64 bytes from localhost (127.0.0.1): icmp_seq=1 ttl=64 time=0.026 ms64 bytes from localhost (127.0.0.1): icmp_seq=2 ttl=64 time=0.041 ms64 bytes from localhost (127.0.0.1): icmp_seq=3 ttl=64 time=0.045 ms

Preparation

echo 'deb https://download.jitsi.org stable/' >> /etc/apt/sources.list.d/jitsi-stable.listwget -qO -  https://download.jitsi.org/jitsi-key.gpg.key | apt-key add - apt-get install apt-transport-https apt update apt upgrade

Firewall Setup

ufw allow 22/tcp &&ufw allow 443/tcp &&ufw allow 4443/tcp &&ufw allow 10000/udp &&ufw enable

Video Bridge Setup

apt -y install jitsi-videobridge2

Configure sip-communicator.properties

sudo su -
org.ice4j.ice.harvest.DISABLE_AWS_HARVESTER=true
#If your Jitsi set up is behing the NAT comment out the line below
org.ice4j.ice.harvest.STUN_MAPPING_HARVESTER_ADDRESSES=meet-jit-si-turnrelay.jitsi.net:443
org.jitsi.videobridge.ENABLE_STATISTICS=true
org.jitsi.videobridge.STATISTICS_TRANSPORT=muc
org.jitsi.videobridge.xmpp.user.shard.HOSTNAME=YOUR_JITSI_DOMAIN
org.jitsi.videobridge.xmpp.user.shard.DOMAIN=auth.YOUR_JITSI_DOMAIN
org.jitsi.videobridge.xmpp.user.shard.USERNAME=SAME_AS_JMS_BRIDGE_CONFIG
org.jitsi.videobridge.xmpp.user.shard.PASSWORD=SAME_AS_JMS_BRIDGE_CONFIG
org.jitsi.videobridge.xmpp.user.shard.MUC_JIDS=JvbBrewery@internal.auth.YOUR_DOMAIN
org.jitsi.videobridge.xmpp.user.shard.MUC_NICKNAME=jitsibridge1
#If your Jitsi setup is behing the NAT set up your local ip othervise comment out
org.ice4j.ice.harvest.NAT_HARVESTER_LOCAL_ADDRESS=YOUR_LOCAL_IP
#If your Jitsi setup is behing the NAT set up your public ip othervise comment out
org.ice4j.ice.harvest.NAT_HARVESTER_PUBLIC_ADDRESS=YOUR_PUBLIC_IP
org.jitsi.videobridge.xmpp.user.shard.DISABLE_CERTIFICATE_VERIFICATION=true

Testing

/etc/init.d/jitsi-videobridge2 restart
INFO: [31] org.jitsi.jicofo.bridge.BridgeSelector.log() Added new videobridge: Bridge[jid=jvbbrewery@internal.YOUR_JITSI_DOMAIN/jitsibridge1, relayId=null, region=null, stress=0.00]
/etc/init.d/jitsi-videobridge2 stop .

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store