Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Install Ubuntu 18.04 LTS
- apt-get update
- apt-get upgrade
- reboot
- copy certificates to /etc/ssl to be used by jitsi-meet package insatall
- wget -qO - https://download.jitsi.org/jitsi-key.gpg.key | sudo apt-key add -
- sh -c "echo 'deb https://download.jitsi.org stable/' > /etc/apt/sources.list.d/jitsi-stable.list"
- apt-get -y update
- apt-get -y install jitsi-meet
- wget https://packages.prosody.im/debian/pool/main/p/prosody-trunk/prosody-trunk_1nightly747-1~trusty_amd64.deb
- dpkg -i prosody-trunk_1nightly747-1~trusty_amd64.deb
- apt-get install libssl1.0-dev
- apt-get install luarocks
- luarocks install luacrypto
- apt-get install jitsi-meet-tokens
- luarocks install basexx
- luarocks install luajwtjitsi
- vi /usr/lib/prosody/modules/mod_posix.lua
- edit line 123, remove format method that is causing error, so it becomes
- syslog(level, name, message);
- vi /etc/prosody/prosody.cfg.lua
- Add to end:
- c2s_require_encryption=false
- Include "conf.d/*.cfg.lua"
- edit /etc/prosody/conf.avail/host.domain.com.cfg.lua
- set storage = "null" and enable token auth:
- Virtual Host "host.domain.com"
- ...
- app_id="ApplicationName"
- app_secret="randomSecretHere"
- ...
- Component "conference.host.domain.com" "muc"
- storage = "null"
- modules_enabled = {
- "muc_meeting_id";
- "muc_domain_mapper";
- "token_verification";
- }
- To prevent prosody error log loading key:
- chmod 755 /etc/prosody/certs
- chmod 644 /etc/prosody/certs/localhost.key
- reboot
- test jwt with token from https://jwt.io/
- header
- {
- "alg": "HS256",
- "typ": "JWT"
- }
- payload
- {
- "context": {
- "user": {
- "name": "John Doe",
- "email": "jdoe@example.com"
- }
- },
- "aud": "ApplicationName",
- "iss": "IssuerName",
- "sub": "host.domain.com",
- "room": "RoomNameAllowed",
- "exp": 1595506000
- }
- set HMACSHA256 key as value of app_secret in prosody conf file
- test with https://host.domain.com/RoomNameAllowed?jwt=......
Add Comment
Please, Sign In to add comment