Jitsi Meet
Self-host Jitsi Meet on Debian: install from the Jitsi repository, add a Let's Encrypt certificate, open the firewall, require login and check the services.
4 min readUpdated
Jitsi Meet is an open source video conferencing system that you can run on your own server. This note installs it on Debian from the Jitsi package repository, replaces the temporary certificate with one from Let’s Encrypt, opens the firewall, restricts room creation to registered users while guests can still join, and lists what to check once it runs.
Prerequisites
- A fresh Debian server with root or
sudoaccess - A domain name, for example
meet.yourdomain.com, whose DNS record points to the server - At least 2 GB of RAM; 4 GB is recommended for several simultaneous users
Install the required packages
Update the system and install the tools needed to add the repository:
sudo apt update && sudo apt upgrade -ysudo apt install -y default-jdk gnupg2 curlNote: The Jitsi handbook states that OpenJDK 17 must be used. Check which version default-jdk installs on your Debian release with java -version.
Add the Jitsi repository
Download the Jitsi signing key into a keyring file:
sudo mkdir -p /usr/share/keyringscurl -fsSL https://download.jitsi.org/jitsi-key.gpg.key | \ gpg --dearmor | sudo tee /usr/share/keyrings/jitsi-keyring.gpg > /dev/nullThen add the repository, signed by that key, as a one-line source list:
echo "deb [signed-by=/usr/share/keyrings/jitsi-keyring.gpg] https://download.jitsi.org stable/" | sudo tee /etc/apt/sources.list.d/jitsi-stable.listOr, in the newer deb822 format, create /etc/apt/sources.list.d/jitsi.sources instead (use only one of the two):
Types: debURIs: https://download.jitsi.orgSuites: stable/Components:Architectures: amd64Signed-By: /usr/share/keyrings/jitsi-keyring.gpgThe handbook also adds the Prosody repository, so that a current Prosody (the XMPP server Jitsi uses) is installed; some features, such as the lobby, need it:
sudo curl -sL https://prosody.im/files/prosody-debian-packages.key -o /usr/share/keyrings/prosody-debian-packages.keyecho "deb [signed-by=/usr/share/keyrings/prosody-debian-packages.key] http://packages.prosody.im/debian $(lsb_release -sc) main" | sudo tee /etc/apt/sources.list.d/prosody-debian-packages.listRefresh the package lists:
sudo apt updateInstall Jitsi Meet
sudo apt install -y jitsi-meetThe installer asks two questions:
- Hostname: enter your domain, for example
meet.yourdomain.com. - TLS certificate: choose the Let’s Encrypt option, or “Generate a new self-signed certificate” as a temporary choice and add Let’s Encrypt afterwards (next section).
The installer configures a virtual host in Nginx or Apache if one of them is installed.
Add a Let’s Encrypt certificate
If you started with a self-signed certificate, replace it with one from Let’s Encrypt. A self-signed certificate causes browser warnings, and the Jitsi Meet mobile apps refuse to connect to it.
sudo /usr/share/jitsi-meet/scripts/install-letsencrypt-cert.shThe script asks for an email address, requests the certificate and configures HTTPS.
Configure the firewall
Jitsi needs these ports:
- 80/tcp and 443/tcp: web access and certificate validation
- 10000/udp: audio and video traffic (required)
- 3478/udp: STUN queries to the bundled coturn server (optional)
- 5349/tcp: audio and video over TCP when UDP is blocked, served by coturn
With UFW, allow them, and SSH on 22/tcp so that enabling the firewall does not lock you out:
sudo ufw allow 22/tcpsudo ufw allow 80/tcpsudo ufw allow 443/tcpsudo ufw allow 10000/udpsudo ufw allow 3478/udpsudo ufw allow 5349/tcpsudo ufw enableIf the server is behind NAT, forward at least 443/tcp and 10000/udp to it.
Require login to create rooms (optional)
By default anyone who can reach the server can start a meeting. The secure domain setup below asks for a user name and password whenever a new room is created; once the room exists, guests join without logging in.
Note: The Jitsi handbook now marks this secure domain method as deprecated and recommends JWT (token) authentication for new installations.
Enable password authentication in Prosody
Edit the Prosody configuration for your domain:
sudo nano /etc/prosody/conf.avail/meet.yourdomain.com.cfg.luaIn the existing VirtualHost section for your domain, replace anonymous authentication with hashed passwords:
VirtualHost "meet.yourdomain.com" authentication = "internal_hashed"After that section, add a virtual host for guests:
VirtualHost "guest.meet.yourdomain.com" authentication = "jitsi-anonymous" c2s_require_encryption = falseThe guest domain is internal to Jitsi: it needs no DNS record, certificate or web server configuration. Older guides use authentication = "anonymous"; the current handbook uses jitsi-anonymous.
Register a user
Create the account that may open rooms:
sudo prosodyctl register youruser meet.yourdomain.com 'yourpassword'Tell Jicofo that login is mandatory
Jicofo, the conference focus component, must accept new conferences only from the authenticated domain. In /etc/jitsi/jicofo/jicofo.conf, add an authentication block inside the existing jicofo section (do not create a second jicofo section):
jicofo { authentication: { enabled: true type: XMPP login-url: "meet.yourdomain.com" }}Point the web client to the guest domain
Edit the Jitsi Meet client configuration:
sudo nano /etc/jitsi/meet/meet.yourdomain.com-config.jsAdd the anonymousdomain line to the existing hosts block (mind the commas):
var config = { hosts: { domain: 'meet.yourdomain.com', anonymousdomain: 'guest.meet.yourdomain.com', // ... }, // ...}Restart the services
sudo systemctl restart prosodysudo systemctl restart jicofosudo systemctl restart jitsi-videobridge2Join a meeting
As the registered user:
- Open
https://meet.yourdomain.comin a browser. - Create a room, for example
room1. - A login dialog appears; enter the user name and password registered above.
As a guest, open https://meet.yourdomain.com/room1. Once the room has been created, you join it without logging in.
Check the services
Check that the video bridge is running:
sudo systemctl status jitsi-videobridge2If something does not work, look in the logs:
/var/log/jitsi/jvb.log(video bridge)/var/log/jitsi/jicofo.log(Jicofo)/var/log/prosody/prosody.log(Prosody)
If participants cannot see or hear each other, check the firewall and NAT rules first. For users behind restrictive NATs or firewalls, a production setup should include a TURN server.