[JitsiMeet] Etherpad (on Debian 10)
發表於 : 2021-08-24, 14:01
參考文件:
https://community.jitsi.org/t/tutorial- ... ings/99697
https://github.com/ether/etherpad-lite#installation
https://github.com/ether/etherpad-lite/ ... -a-service
安裝Etherpad-lite
1.安裝 npm nodejs git
https://github.com/nodesource/distribut ... DME.md#deb
2.建立etherpad使用者並clone Etherpad
3.執行
4.開啟防火牆
5.測試
http://meet.your_domain.com:9001
將etherpad-lite設為服務
1.關閉防火牆
2.確認使用者群組
3.設定服務
# /etc/systemd/system/etherpad.service
4.開啟並啟用服務
設定 Jitsi
1.
# /etc/jitsi/meet/meet.example.com-config.js 程式碼最後用逗號分隔 ‘,’
2.設定Nginx conf
# /etc/nginx/sites-available/meet.your_domain.com.conf
3.重啟nginx
https://community.jitsi.org/t/tutorial- ... ings/99697
https://github.com/ether/etherpad-lite#installation
https://github.com/ether/etherpad-lite/ ... -a-service
安裝Etherpad-lite
1.安裝 npm nodejs git
https://github.com/nodesource/distribut ... DME.md#deb
代碼: 選擇全部
curl -fsSL https://deb.nodesource.com/setup_current.x | bash -
apt install npm nodejs git -y代碼: 選擇全部
useradd etherpad
mkdir /home/etherpad
chown -R etherpad /home/etherpad
su - etherpad
git clone --branch master git://github.com/ether/etherpad-lite.git代碼: 選擇全部
cd etherpad-lite
./src/bin/run.sh代碼: 選擇全部
ufw allow 9001/tcphttp://meet.your_domain.com:9001
將etherpad-lite設為服務
1.關閉防火牆
代碼: 選擇全部
ufw deny 9001/tcp代碼: 選擇全部
groups etherpad
# 輸出 etherpad : etherpad
# /etc/systemd/system/etherpad.service
代碼: 選擇全部
[Unit]
Description=etherpad-lite (real-time collaborative document editing)
After=syslog.target network.target
[Service]
Type=simple
User=etherpad
Group=etherpad
WorkingDirectory=/home/etherpad/etherpad-lite
Environment=NODE_ENV=production
ExecStart=/home/etherpad/etherpad-lite/src/bin/run.sh
[Install]
WantedBy=multi-user.target代碼: 選擇全部
systemctl enable etherpad
systemctl start etherpad1.
# /etc/jitsi/meet/meet.example.com-config.js 程式碼最後用逗號分隔 ‘,’
代碼: 選擇全部
..
tokenAuthUrl
*/
etherpad_base: ‘https://meet.your_domain.com/etherpad/p/’,
/*
externalConnectUrl
..# /etc/nginx/sites-available/meet.your_domain.com.conf
代碼: 選擇全部
server {
listen 443 ssl;
listen [::]:443 ssl;
# Etherpad-lite 新增以下程式碼
location ^~ /etherpad/ {
proxy_pass http://localhost:9001/;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_buffering off;
proxy_set_header Host $host;
}代碼: 選擇全部
systemctl restart nginx