讓jitsi meet需要密碼登入
以 主機名稱 meet.test.com 為例子, 以下只要是meet.test.com皆須改成真實的主機名字
1. 修改 /etc/prosody/conf.avail/meet.test.com.cfg.lua
VirtualHost "meet.test.com" authentication = "internal_plain" ... VirtualHost "guest.meet.test.com" authentication = "anonymous" c2s_require_encryption = false modules_enabled = { "bosh"; "pubsub"; "ping"; "speakerstats"; "turncredentials"; "conference_duration"; }
2. 安裝module storage_memory模組(optional)
apt install -y mercurial mkdir ~/temp && cd ~/temp hg clone 'https://hg.prosody.im/prosody-modules/' prosody-modules cp prosody-modules/mod_storage_memory/*.lua /usr/lib/prosody/modules/.
3. 修改 /etc/jitsi/meet/meet.test.com-config.js
var config = { … hosts: { … domain: 'meet.test.com', anonymousdomain: 'guest.meet.test.com', … }, … }
4. 修改 /etc/jitsi/jicofo/sip-communicator.properties
org.jitsi.jicofo.auth.URL=XMPP:meet.test.com
5. 新增可登入的帳號密碼
prosodyctl register william meet.test.com mypassword
6. 重開服務
systemctl restart {prosody,jicofo,jitsi-videobridge2,nginx}
這樣一來, 只有第一個登入的人需要輸入帳號密碼, 其他使用相同網址不需要密碼就可以登入(來賓帳戶guest)