Install Jitsi Meet and Configure Load Balancing

Original –


Jitsi Meet is an open-source (Apache) WebRTC JavaScript application that uses Jitsi Videobridge to provide high quality, secure and scalable video conferences. It can be used as a replacement for proprietary services like Zoom, Whereby, Teams, Skype and many others.


  • At least two Linux systems with Debian 10
  • DNS Record for your domain (in our case

Prepare your system

First of all we prepare our system by updating all package lists and packages. To do so run the following commands.

apt update && apt upgrade -y

Basic Jitsi Meet installation

Next, please be sure that your FQDN is configured correct. localhost

Verify the configuration by running ping and look for

Add the Jitsi Repository

echo 'deb stable/' >> /etc/apt/sources.list.d/jitsi-stable.list
wget -qO - | apt-key add -
apt update

Install nginx

Jitsi will install and configure a webserver called Jetty when no nginx or apache server was detected during the installation. Since Jetty is java based and really slow we want to use nginx. Install it by running the following command.

apt install nginx -y

Install jitsi meet

Now we are ready to install Jitsi Meet by running the following command. This will install all required components for Jitsi to work, including the web component, jicofo, jitsi-videobridge and much more.

apt install jitsi-meet -y

During the installation, you will be asked to enter the FQDN of the Jitsi Meet instance. Please be sure to enter the correct hostname (in our case

Generate a certificate

In order to have secure communication we need a TLS certificate. Luckily Jitsi Meet makes this very easy. Simply run the following command, enter a valid email address and wait until the script finished.


At this point we are already able to use Jitsi Meet. You can even test it by navigating to the hostname of your Jitsi Meet instance (in our case

Load Balancing

Now the interesting part begins. Jitsi Meet on a single machine is fine if you only have a few videostreams but at some point your single instance may get too busy to handle all meetings on its own.

Please open the file /etc/jitsi/videobridge/ It should look similar to this.

Please add the following lines to the end of this file.


In addition, please change the line org.jitsi.videobridge.xmpp.user.shard.MUC_NICKNAME to this.


Configure the second machine

Please connect to the second machine, add the required repositories and install jitsi-videobridge by running the following commands.

echo 'deb stable/' >> /etc/apt/sources.list.d/jitsi-stable.list
wget -qO - | apt-key add -
apt update
apt install jitsi-videobridge2 -y

Again, you will be asked for the hostname of your installation. Please enter the FQDN of the first machine (in our case

Next, also open the file /etc/jitsi/videobridge/ and add the following lines to the end.


Find the line org.jitsi.videobridge.xmpp.user.shard.HOSTNAME and set it to the public ip address of the first machine.

- org.jitsi.videobridge.xmpp.user.shard.HOSTNAME=localhost
+ org.jitsi.videobridge.xmpp.user.shard.HOSTNAME=<public ip address>

In addition, please change the line org.jitsi.videobridge.xmpp.user.shard.MUC_NICKNAME to this.


Get the credentials

On the first machine, please open the file /etc/jitsi/videobridge/config and find the line JVB_SECRET. Copy the password and go back to the second machine.

Replace the passwords in the following two files by the password you just copied.


Now restart both machines and take a look at the log files located in /var/log/jitsi/.

You should find similar lines to thes in the jicofo.log file.

Jicofo 2020-03-28 14:37:02.928 INFO: [29] org.jitsi.jicofo.xmpp.BaseBrewery.processInstanceStatusChanged().329 Added brewery instance:
Jicofo 2020-03-28 14:37:02.928 INFO: [29] org.jitsi.jicofo.bridge.BridgeSelector.log() Added videobridge: v: null
Jicofo 2020-03-28 14:37:02.929 WARNING: [29] org.jitsi.jicofo.bridge.BridgeSelector.log() No pub-sub node mapped for
Jicofo 2020-03-28 14:37:02.950 INFO: [44] org.jitsi.jicofo.bridge.JvbDoctor.log() Scheduled health-check task for:

You can repeat this for as many machines as you want.

At this point you have successfully configured Jitsi Meet with load balancing. To ensure that load balancing works please start multiple meetings and monitor jicofo.log. You should find a line similar to this one.

Using to allocate channels for: Participant[]@469524696

If you have any questions about the setup or difficulties following it, please feel free to contact me.