. . . . . .

let’s make something together

Give us a call or drop by anytime, we endeavour to answer all enquiries within 24 hours on business days.

Find us

PO Box 14, Sir Baron Jayatilaka Mawatha, Colombo 1. Sri Lanka

Email us

[email protected]

Phone support

Phone: + (094) 117 652 500

A Quick Guide to Room Restriction for Jitsi Moderators


security + JitsiHaving a hard time with the Room Restriction feature in Jitsi? Here is my quick guide on how to add multiple moderators and how to restrict rooms for moderators. 
If you are familiar with Jitsi you already know this is a time-consuming and tedious process. We can’t restrict the rooms abruptly but you can implement this restriction by following the process given below step by step.

Step 1: Add a Secure Domain for Jitsi

This is the way to do it. First, you have to find the .lua file which contains the domain name. Use the given path below to find the required .lua file.

$ vim /etc/prosody/conf.avail/[your-hostname].cfg.lua

Firstly, you have to edit the admin’s virtual host while creating another virtual host for other users. I have shown below how to change the admin’s virtual host.

$ VirtualHost “jitsi-meet.example.com”
   authentication = “sql”

In this way, you can add a new host for anonymous guest users.

$ VirtualHost “guest.jitsi-meet.example.com”
authentication = “anonymous”
c2s_require_encryption = false

Next, we have to edit our Jitsi Meet Config file. During editing, you may encounter an issue due to different installation methods. There are several users who have installed Jitsi Meet from the Debian package and there are some users who complete the installation by making a clone from the Github repository. The steps below can be followed for either of the aforementioned installation methods.

  • If you install the Debian package then you can find out the file from here.
    • vim /etc/jitsi/meet/domainName.conf
  • If you have installed by making a clone from Github then first you have to go to the project where you have created the clone. This can be located in a file named config.js. You can proceed by adding the code segment below to this file.

$ var config = {
    hosts: {
            domain: ‘jitsi-meet.example.com’,
            anonymousdomain: ‘guest.jitsi-meet.example.com’,

If you follow these steps then only the moderator’s credentials will write to the file inside our app. If you have restricted rooms for moderators in this way it can be difficult to use. We need to save the users to a database. The prosody has three types of databases to complete this process. Those three types are MySQL, SQLite3, and PostgreSQL.

I’m going to teach you how to use the MySQL database for this process.

#1. Set up MySQL for your current server

Then we have to add our configurations to the file prosody.cfg.lua. I have given the location for that prosody.cfg.lua

$ vim /etc/prosody/prosody.cfg.lua

By executing the above command we can view prosody.cfg.lua. After adding the below line you can connect the MySQL database to the prosody.

$ allow_registration = true;

#2. Un comment only this line

$ sql = { driver = “MySQL”, database = “test”, username = “root”,password = “1234”, host = “localhost” }

After all these steps are complete, you have to do the main task because it is according to the prosody that we have to create the database structure. For this purpose, there special database structures and modules available. 
If you wish to buy this database structure, modules, and sample demo you can contact our company via e-mail. I hope you find this guide helpful for restricting rooms in Jitsi. Thank you…