Skip to content

Jitsi Meet Production Environment

Alexis Morel edited this page Dec 8, 2019 · 5 revisions

Prerequisites

  • A linux vm (this procedure is tested on a DigitalOcean's vm)
  • Sudo user
  • A domain already associated to your vm, here it's gonna be jitsimeet.com

Installation

Step 1 - Setup hostname and fully qualified domain name (FQDN)

sudo hostnamectl set-hostname jitsimeet
sudo sed -i 's/^127.0.1.1.*$127.0.1.1 jitsimeet.com jitsimeet/g' /etc/hosts
hostname
hostname -f

Step 2 - Update System

sudo apt update
sudo apt upgrade -y && sudo reboot

Step 3 - Install Java 8

sudo apt install -y openjdk-8-jre-headless

Test java version:

java -version

Setup java home:

echo "JAVA_HOME=$(readlink -f /usr/bin/java | sed "s:bin/java::")" | sudo tee -a /etc/profile
source /etc/profile

Step 4 - Open ports

sudo ufw allow http
sudo ufw allow https
sudo ufw allow in 10000:20000/udp
sudo ufw enable

Step 5 - Install Nginx web server

sudo apt install -y nginx
sudo systemctl start nginx.service
sudo systemctl enable nginx.service

Step 6 - Install Jitsi Meet

cd
wget -q0 - https://download.jitsi.org/jitsi-key.gpg.key | sudo apt-key add -
sudo sh -c "echo 'deb https://download.jitsi.org stable/' > /etc/apt/sources.list.d/jitsi-stable.list"
sudo apt update -y
sudo apt install jitsi-meet

During the installation, when you are asked to prodive a hostname, put your domain name. After that select generate a new self-signed certificate (we are gonna generate a real certificate later).

Step 7 - Generate a certificate

sudo /usr/share/jitsi-meet/scripts/install-letsencrypt-cert.sh

During the process, input your domain email.

Step 8 - Custom changes

If you made changes to jitsi-meet front-end, you will need to edit the config file in /etc/jitsi/meet or change the jitsi-meet folder for yours.

Step 9 - Recording

To activate the recording feature follow this readme https://github.com/jitsi/jibri and add

consider_bosh_secure = true;

to the /etc/prosody/prosody.cfg.lua

*** You need to install Jibri on a different machine than Jitsi-Meet ***