sudo dnf install matrix-synapse
03 Mai 2020
Schnellinstallation Matrix Synapse Server unter Fedora
sudo dnf install matrix-synapse
sudo python -m synapse.app.homeserver --server-name host.domain.name --config-path /etc/synapse/homeserver.yaml --generate-config --report-stats=no
und anschließend /etc/synapse/homeserver.yaml anpassen
register_new_matrix_user -c /etc/synapse/homeserver.yaml http://localhost:8008
firewall-cmd --permanent --zone=public --add-port=80/tcp
server { server_name host.domain.name; listen 443 ssl http2; #default_server; listen [::]:443 ssl http2; #default_server; server_name host.domain.name; [...}] ssl_certificate fullchain.pem; ssl_certificate_key privkey.pem; location /_matrix { proxy_pass http://192.168.XXX.XXX:8008; proxy_set_header X-Forwarded-For $remote_addr; proxy_redirect off; } location /_synapse { proxy_pass http://192.168.XXX.XXX:8008; proxy_set_header X-Forwarded-For $remote_addr; } }
server {
listen 8448 ssl http2; #default_server;
listen [::]:8448 ssl http2; #default_server;
server_name host.domain.name;
ssl_certificate fullchain.pem;
ssl_certificate_key privkey.pem;
location /_matrix {
proxy_pass http://192.168.X.X:8008;
proxy_set_header X-Forwarded-For $remote_addr;
}
}