sudo -s
apt install gufw
(1)
名稱: Allow Jitsi tcp.80 in
政策: 允許
方向: 內
協定: TCP
通訊埠: 80
(2)
名稱: Allow Jitsi tcp.443 in
政策: 允許
方向: 內
協定: TCP
通訊埠: 443
(3)
名稱: Allow Jitsi udp.10000 in
政策: 允許
方向: 內
協定: UDP
通訊埠: 10000
(4)
名稱: Allow Jitsi udp.3478 in
政策: 允許
方向: 內
協定: UDP
通訊埠: 3478
(5)
名稱: Allow Jitsi tcp.5349 in
政策: 允許
方向: 內
協定: TCP
通訊埠: 5349
sudo apt-get update ; sudo apt-get upgrade -y ; sudo apt-get dist-upgrade -y
sudo apt install apt-transport-https curl bosh gnupg2 nginx-full -y
sudo apt-add-repository universe
sudo apt update
範例:
網域使用 rickymeettech.ddns.net
Public IP使用 122.117.33.185
sudo hostnamectl set-hostname rickymeettech.ddns.net
sudo gedit /etc/hosts
在最後一行新增加入
122.117.33.185 rickymeettech.ddns.net
sudo curl https://download.jitsi.org/jitsi-key.gpg.key | sudo sh -c ‘gpg –dearmor > /usr/share/keyrings/jitsi-keyring.gpg’
sudo echo ‘deb [signed-by=/usr/share/keyrings/jitsi-keyring.gpg] https://download.jitsi.org stable/’ | sudo tee /etc/apt/sources.list.d/jitsi-stable.list > /dev/null
sudo apt update
sudo apt install jitsi-meet -y
sudo /usr/share/jitsi-meet/scripts/install-letsencrypt-cert.sh
sudo gedit /etc/prosody/conf.avail/rickymeettech.ddns.net.cfg.lua
authentication = “internal_hashed”
VirtualHost “guest.rickymeettech.ddns.net”
authentication = “anonymous”
modules_enabled = {
“muc_lobby_rooms”;
}
c2s_require_encryption = false
sudo gedit /etc/jitsi/meet/rickymeettech.ddns.net-config.js
anonymousdomain: ‘guest.rickymeettech.ddns.net’,
desktopSharingFrameRate: {
min: 30,
max: 30
},
defaultLanguage: ‘zhTW’,
requireDisplayName: true,
sudo gedit /etc/jitsi/jicofo/sip-communicator.properties
org.jitsi.jicofo.auth.URL=XMPP:rickymeettech.ddns.net
org.jitsi.jicofo.auth.DISABLE_AUTOLOGIN=true
cd /usr/lib/prosody/modules/
sudo wget http://prosody.im/files/mod_listusers.lua
sudo prosodyctl restart
sudo prosodyctl register {帳號名稱} {主機網址} {帳號密碼}