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

How to Use Manjaro Hardware Detection Tool

Manjaro is based on the well-known Arch Linux. Among all the facilities, Manjaro Hardware Detection Tool is a unique one....
29/12/2020

GPU Programming with C++

Overview In this guide, we’ll explore the power of GPU programming with C++. Developers can expect incredible performance...
28/12/2020

Dịch vụ thuê mua proxy giá rẻ an toàn, tốc độ cao

Thuê mua proxy giá rẻ nhưng vẫn đảm bảo an toàn, tốc độ cao, hiệu suất sử dụng ổn định là...
13/05/2024
Bài Viết

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

Reliable IPv4 and IPv6 Subnet Rental Services: The Perfect Solution for Global Businesses
23/12/2024

Tìm Hiểu Về Thuê Proxy US – Lợi Ích và Cách Sử Dụng Hiệu Quả
11/12/2024

Mua Proxy V6 Nuôi Facebook Spam Hiệu Quả Tại Onetcomvn
03/06/2024

Hướng dẫn cách sử dụng ProxyDroid để duyệt web ẩn danh
03/06/2024

Mua proxy Onet uy tín tại Onet.com.vn
03/06/2024