Hướng dẫn tích hợp tính năng Etherpad trên Jitsi

30/12/2020

Hôm nay, Cloud 365 sẽ hướng dẫn các bạn tích hợp công cụ Etherpad để sử dụng trong phòng họp Jitsi.

Domain sử dụng trong bài viết: http://meet.workfromhome.vn/

1: Cài đặt Etherpad

Cài đặt Git

apt install git -y 

Cài đặt Etherpad

cd /opt/  curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash - sudo apt install -y nodejs git clone --branch master https://github.com/ether/etherpad-lite.git && cd etherpad-lite && bin/run.sh --root

Kiểm tra đường dẫn: http://<DOMAIN>:9001, giao diện Etherpad như sau.

Chọn New Pad

Tạo File Systemd cho dịch vụ Etherpad /etc/systemd/system/etherpad.service

vi /etc/systemd/system/etherpad.service

Thêm vào file nội dung:

[Unit] Description=Etherpad-lite, the collaborative editor. After=syslog.target network.target  [Service] Type=simple User=root Group=www-data WorkingDirectory=/opt/etherpad-lite/ Environment=NODE_ENV=production  ExecStart=/usr/bin/node /opt/etherpad-lite/src/node/server.js  Restart=always   [Install] WantedBy=multi-user.target

Khởi động dịch vụ

sudo systemctl daemon-reload sudo systemctl start etherpad.service sudo systemctl enable etherpad.service 

Kiểm tra lại đường dẫn http://<DOMAIN>:9001

Kiểm tra log dịch vụ như sau: (Dùng trong trường hợp dịch vụ có vấn đề)

journalctl -u etherpad

Phần 2: Cấu hình tích hợp Etherpad + Jitsi

Backup thư mục static Jitsi-meet

cd /opt/ cp -R /usr/share/jitsi-meet/static /opt/static_jitsi_bak/ 

Copy file static của Etherpad vào thư mục static chung Jitsi-meet

cp -R /opt/etherpad-lite/src/static/* /usr/share/jitsi-meet/static

Lưu ý:

  • Khi cấu hình Etherpad + Jitsi, etherpad sẽ là 1 sub path thuộc jitsi.
  • VD: https://<DOMAIN> => Jitsi, https://<DOMAIN>/etherpad => Etherpad

Cấu hình Nginx, thêm vào cuối File /etc/nginx/sites-available/<DOMAIN>.conf

Cụ thể ở đây là /etc/nginx/sites-available/meet.workfromhome.vn.conf

Lưu ý:

  • Thêm đoạn cấu hình vào gần cuối
  • Trước dấu đóng } cuối cùng
....     # Etherpad path     location ^~ /etherpad/ {         proxy_pass http://localhost:9001/;         proxy_set_header X-Forwarded-For $remote_addr;         proxy_buffering off;         proxy_set_header       Host $host;     }

Sửa file /etc/jitsi/meet/<DOMAIN>-config.js

Cụ thể ở đây là /etc/jitsi/meet/meet.workfromhome.vn-config.js

Thêm vào dòng này:

    etherpad_base: 'https://meet.workfromhome.vn//etherpad/p/',

Lưu ý:

  • Giá trị etherpad_base bằng https://<DOMAIN>/etherpad/p/
  • Thêm vào trước cấu hình makeJsonParserHappy

Kiểm tra:

cat /etc/jitsi/meet/meet.workfromhome.vn/-config.js | grep 'etherpad_base' -C 5

Khởi động lại dịch vụ Nginx

nginx -t nginx -s reload

Kiểm tra đường dẫn: https://<DOMAIN>/, tạo cuộc họp

Tại giao diện cuộc họp chúng ta sẽ có thêm tính năng chia sẻ docs.

Click vào ô mở tài liệu được chia sẻ sẽ thấy giao diện sau:

Tính năng chia sẻ note cho phép các thành viên trong phòng họp có thể chia sẻ ghi chú trong cuộc họp:

Kết luận

Như vậy chúng tôi đã hướng dẫn xong cho bạn cách tính hợp Etherpad vào trang Jitsi của bạn.

Chúc các bạn thành công!

ONET IDC thành lập vào năm 2012, là công ty chuyên nghiệp tại Việt Nam trong lĩnh vực cung cấp dịch vụ Hosting, VPS, máy chủ vật lý, dịch vụ Firewall Anti DDoS, SSL… Với 10 năm xây dựng và phát triển, ứng dụng nhiều công nghệ hiện đại, ONET IDC đã giúp hàng ngàn khách hàng tin tưởng lựa chọn, mang lại sự ổn định tuyệt đối cho website của khách hàng để thúc đẩy việc kinh doanh đạt được hiệu quả và thành công.
Bài viết liên quan

Best Open Source Secure Email Gateway Packages

Secure Email Gateways or Email security gateways are gateways designed to filter mail traffic. Some mail providers and...
29/12/2020

VIM Find and Replace

Vi/Vim is one of the legendary text editors out there that still finds its place at the arsenal of advanced and professional...
29/12/2020

Hướng dẫn cấu hình nhận Real-IP từ người dùng truy cập vào trang web thông qua Nginx

Trong bài trước, mình đã hướng dẫn các bạn cách cài đặt sử dụng Nginx làm reverse proxy cho WordPress...
30/12/2020
Bài Viết

Bài Viết Mới Cập Nhật

Thuê mua proxy Facebook chất lượng, GIÁ TỐT NHẤT
09/05/2024

Dịch vụ thuê mua proxy Zalo giá rẻ, tốc độ cao
09/05/2024

SỰ KHÁC BIỆT GIỮA RESIDENTIAL PROXY VÀ PROXY DATACENTER
17/02/2024

Mua Proxy v6 US Private chạy PRE, Face, Insta, Gmail
07/01/2024

Mua shadowsocks và hướng dẫn sữ dụng trên window
05/01/2024