Installing Synapse+Riot+Jitsi

  • Explication

 

  • Prerequisites
    • Dossier partager all user

 

  • Manipulation
apt-get install -y vim
    • Nginx
apt-get install -y nginx
vim /etc/nginx/sites-enabled/visio.conoir.com
vim /etc/nginx/sites-enabled/matrix.conoir.com
vim /etc/nginx/sites-enabled/riot.conoir.com
server {
       listen 80;
       listen [::]:80;

       server_name visio.conoir.com;

       root /var/www/visio.conoir.com;
       index index.html;

       location / {
               try_files $uri $uri/ =404;
       }
}
server {
       listen 80;
       listen [::]:80;

       server_name matrix.conoir.com;

       root /var/www/matrix.conoir.com;
       index index.html;

       location / {
               proxy_pass http://localhost:8008;
       }
}
server {
       listen 80;
       listen [::]:80;

       server_name riot.conoir.com;

       root /var/www/riot.conoir.com/riot;
       index index.html;

       location / {
               try_files $uri $uri/ =404;
       }
}
    • Let'encrypte
apt install -y python3-certbot-nginx && certbot --nginx -d visio.conoir.com -d matrix.conoir.com -d riot.conoir.com
mkdir /var/www/visio.conoir.com
mkdir /var/www/matrix.conoir.com
mkdir /var/www/riot.conoir.com
    • Synapse
apt install -y lsb-release wget apt-transport-https
wget -O /usr/share/keyrings/matrix-org-archive-keyring.gpg https://packages.matrix.org/debian/matrix-org-archive-keyring.gpg
echo "deb [signed-by=/usr/share/keyrings/matrix-org-archive-keyring.gpg] https://packages.matrix.org/debian/ $(lsb_release -cs) main" | tee /etc/apt/sources.list.d/matrix-org.list
apt update
apt install matrix-synapse-py3

DNS : Visio.conoir.com

    • Well-known
mkdir -p /var/www/visio.conoir.com/.well-known/matrix
cd /var/www/visio.conoir.com/.well-known/matrix
echo '{ "m.server": "matrix.conoir.com:443" }' > server

Test

apt install -y curl
curl -L https://visio.conoir.com/.well-known/matrix/server
    • Riot/web
wget https://github.com/vector-im/riot-web/releases/download/v1.5.15/riot-v1.5.15.tar.gz
apt install -y gnupg
wget https://github.com/vector-im/riot-web/releases/download/v1.5.15/riot-v1.5.15.tar.gz.asc
gpg --verify riot-v1.5.15.tar.gz.asc
wget https://packages.riot.im/riot-release-key.asc
gpg --import riot-release-key.asc
gpg --verify riot-v1.5.15.tar.gz.asc
tar -xzvf riot-v1.5.15.tar.gz
ln -s riot-v1.5.15 riot
cd riot
cp config.sample.json config.json
vim config.json

vim /etc/matrix-synapse/homeserver.yaml

Restart systemctl restart matrix-synapse

 

    • Jisti
echo 'deb https://download.jitsi.org stable/' >> /etc/apt/sources.list.d/jitsi-stable.list
wget -qO -  https://download.jitsi.org/jitsi-key.gpg.key | apt-key add -
apt-get update
apt-get -y install jitsi-meet

DNS : Jetsi.conoir.com

Generate certificat

  • Conclusion