From df453b12a8bcc14b0656ef8424dd8c2e2821afc5 Mon Sep 17 00:00:00 2001 From: Charbel Abi Daher <45701489+CharbelAD@users.noreply.github.com> Date: Mon, 2 May 2022 16:51:11 +0300 Subject: Added link to Jitsi documentation on setting up authentication --- jitsi.html | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'jitsi.html') diff --git a/jitsi.html b/jitsi.html index 3fd42e0..442f6fd 100644 --- a/jitsi.html +++ b/jitsi.html @@ -113,6 +113,11 @@ ufw enable
When you create a video chatroom, its address will appear as meet.example.org/yourvideochatname and can be shared as such.
+ The default Jitsi configuration will allow anyone accessing your site to create a video chatroom. If you want to only allow certain people to create rooms, you can check out how to add authentication here in the original documentation. +
+
--
cgit v1.2.3
From 12dd046d2b84a7a2e66feaa00beb1d3a4ad4cfad Mon Sep 17 00:00:00 2001
From: Charbel Abi Daher When you create a video chatroom, its address will appear as
+ By default, anyone who has access to meet.example.org will be able to create a chatroom. You probably don't want that, so you'll need to set up some authentication. The simplest option is to handle authentication through the local Prosody user database.
+
+ First, we need to enable password authentication in Prosody. Edit meet.example.org/yourvideochatname and can be shared as such.Security
+ Security
+
+ Prosody configuration
+ /etc/prosody/conf.avail/meet.example.org.cfg.lua, and locate this block:
+
+ And change the authentication mode from VirtualHost "meet.example.org"
+ authentication = "anonymous""anonymous" to "internal_hashed".
+
+ Then, to enable guests to login and join your chatrooms, add the following block after the one you just edited: +
VirtualHost "guest.meet.example.org"
+ authentication = "anonymous"
+ c2s_require_encryption = false
+
+
+
- The default Jitsi configuration will allow anyone accessing your site to create a video chatroom. If you want to only allow certain people to create rooms, you can check out how to add authentication here in the original documentation.
+ Next, in /etc/jitsi/meet/meet.example.org-config.js, uncomment the following line:
+
var config = {
+ hosts: {
+ // anonymousdomain: 'guest.jitsi-meet.example.com',
+ },
+}
+
+ And change 'guest.jitsi-meet.example.com' to 'guest.meet.example.org'.
-
+
+
+ Finally, we configure Jicofo to only allow the creation of conferences when the request is coming from an authenticated user. To do so, add the following authentication section to /etc/jitsi/jicofo/jicofo.conf:
+
jicofo {
+ authentication: {
+ enabled: true
+ type: XMPP
+ login-url: meet.example.org
+ }
+
+
+
+ You now need to register some users in Prosody, you can do so manually using prosodyctl:
+
prosodyctl register <username> meet.example.org <password>
+
+
+ Finally, restart prosody, jicofo, and jitsi-videobridge2:
+
systemctl restart prosody
+systemctl restart jicofo
+systemctl restart jitsi-videobridge2
+
+
-- cgit v1.2.3