Skip to content

Instantly share code, notes, and snippets.

@dimaskiddo
Last active October 13, 2022 13:14
Show Gist options
  • Save dimaskiddo/5ab55fc4e9faa914cdf54246979e5d85 to your computer and use it in GitHub Desktop.
Save dimaskiddo/5ab55fc4e9faa914cdf54246979e5d85 to your computer and use it in GitHub Desktop.
Jitsi VideoBridge Setup Guide

How to Install Jitsi VideoBridge for Video Router

Following tutorial will guide you to install Jitsi VideoBridge for Video Router in your own on-premises, cloud, or dedicated servers.

This guide is using Ubuntu 16.04 LTS as the operating system, to start the installation you can follow the guide below.

Operating System Preparation

Escelate Privileged

sudo su

Upgrade OS Distribution

apt-get update && apt-get dist-upgrade -y

Clean-up Unused Packages

apt-get autoremove --purge -y
apt-get clean

Install Jitsi VideoBridge

Automatic Installation

wget -qO - https://gist.githubusercontent.com/dimaskiddo/283b95a0a116b9b0327b749a064d324e/raw/4ae2937f6e12d5998277ec8c6a06263be2997a86/jitsi-jvb-setup.sh | bash -e -

Configure Jitsi VideoBridge Configuration to Enable APIs

nano /etc/jitsi/videobridge/config
# Find and change to following line
...
JVB_HOST=

JVB_HOST=

JVB_PORT=5347

#JVB_SECRET=*****

JVB_OPTS="--apis=rest"
...

Get MUC Authentication Password for Jitsi VideoBridge from Prosody

cat /var/lib/prosody/auth%2eyour%2edomain%2ename/accounts/jvb.dat

Configure Jitsi VideoBridge Properties to use MUC

nano /etc/jitsi/videobridge/sip-communicator
# Find and change to following line
...
#org.ice4j.ice.harvest.DISABLE_AWS_HARVESTER=true
#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_<your_shard_name>.HOSTNAME=your-domain-name
org.jitsi.videobridge.xmpp.user.shard_<your_shard_name>.DOMAIN=auth.your-domain-name
org.jitsi.videobridge.xmpp.user.shard_<your_shard_name>.USERNAME=jvb
org.jitsi.videobridge.xmpp.user.shard_<your_shard_name>.PASSWORD=<your-jvb-muc-password>
org.jitsi.videobridge.xmpp.user.shard_<your_shard_name>.MUC_JIDS[email protected]
org.jitsi.videobridge.xmpp.user.shard_<your_shard_name>.MUC_NICKNAME=<your-jvb-nickname>
...

# Add following line
...
org.jitsi.videobridge.xmpp.user.shard_<your_shard_name>.DISABLE_CERTIFICATE_VERIFICATION=true
...

Configure Jitsi VideoBridge Properties if Behind NAT

nano /etc/jitsi/videobridge/sip-communicator
# Add following line
...
org.ice4j.ice.harvest.NAT_HARVESTER_LOCAL_ADDRESS=<Local.IP.Address>
org.ice4j.ice.harvest.NAT_HARVESTER_PUBLIC_ADDRESS=<Public.IP.Address>
...

Restart Jitsi VideoBridge Service

systemctl restart jitsi-videobridge2
systemctl status jitsi-videobridge2

View Jitsi VideoBridge Log

tail -n 100 -f /var/log/jitsi/jvb.log
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment