# Install dependencies
yum install prosody
# Setup config for prosody
cat << EOF > /etc/prosody/conf.d/meet.stuts.uk.cfg.lua
VirtualHost "chat.stuts.uk"
authentication = "anonymous"
ssl = {
key = "/var/lib/prosody/chat.stuts.uk.key";
certificate = "/var/lib/prosody/chat.stuts.uk.crt";
}
modules_enabled = {
"bosh";
"pubsub";
}
c2s_require_encryption = false
VirtualHost "auth.chat.stuts.uk"
ssl = {
key = "/var/lib/prosody/auth.chat.stuts.uk.key";
certificate = "/var/lib/prosody/auth.chat.stuts.uk.crt";
}
authentication = "internal_hashed"
admins = { "focus@auth.chat.stuts.uk" }
Component "conference.chat.stuts.uk" "muc"
Component "jitsi-videobridge.chat.stuts.uk"
component_secret = "SECRET1"
Component "focus.chat.stuts.uk"
component_secret = "SECRET2"
EOF
# Generate certs (set org name and email address)
prosodyctl cert generate chat.stuts.uk
prosodyctl cert generate auth.chat.stuts.uk
# Trust certificate
ln -sf /var/lib/prosody/auth.chat.stuts.uk.crt /etc/pki/ca-trust/source/anchors/
update-ca-trust
# Conference user
prosodyctl register focus auth.chat.stuts.uk 'SECRET3'
# Restart service
prosodyctl restart
# Add Nginx config
cat << EOF > /etc/nginx/http.d/chat.stuts.uk.conf
server_names_hash_bucket_size 64;
server {
listen 0.0.0.0:443 ssl http2;
listen [::]:443 ssl http2;
# tls configuration that is not covered in this guide
# we recommend the use of https://certbot.eff.org/
server_name chat.stuts.uk;
# set the root
root /srv/jitsi-meet;
index index.html;
location ~ ^/([a-zA-Z0-9=\?]+)$ {
rewrite ^/(.*)$ / break;
}
location / {
ssi on;
}
# BOSH, Bidirectional-streams Over Synchronous HTTP
# https://en.wikipedia.org/wiki/BOSH_(protocol)
location /http-bind {
proxy_pass http://localhost:5280/http-bind;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header Host $http_host;
}
# external_api.js must be accessible from the root of the
# installation for the electron version of Jitsi Meet to work
# https://github.com/jitsi/jitsi-meet-electron
location /external_api.js {
alias /srv/jitsi-meet/libs/external_api.min.js;
}
}
EOF
# Download Videobridge
cd /usr/local
wget https://github.com/jitsi/jitsi-videobridge/archive/stable/jitsi-meet_4627.zip
unzip jitsi-meet_4627.zip
mv jitsi-videobridge-stable-jitsi-meet_4627/ jitsi-videobridge
rm -f jitsi-meet_4627.zip
Ref - https://jitsi.github.io/handbook/docs/devops-guide/devops-guide-manual
https://howto.lintel.in/install-jitsi-meet-centos-7/