Configurei meu servidor doméstico com sucesso com base na descrição disponível emhttps://linuxhandbook.com/install-matrix-synapse-docker/usando uma imagem docker.
Tive que mudar um pouco, pois estou usando o Apache como proxy reverso. Isso eu fiz a partir de outro exemplo:
<VirtualHost *:443>
SSLEngine on
ServerName matrix.oe8bck.at
Include /etc/letsencrypt/options-ssl-apache.conf
SSLCertificateFile /etc/letsencrypt/live/...
SSLCertificateKeyFile /etc/letsencrypt/live/...
RequestHeader set "X-Forwarded-Proto" expr=%{REQUEST_SCHEME}
AllowEncodedSlashes NoDecode
ProxyPreserveHost on
ProxyPass /_matrix http://127.0.0.1:8008/_matrix nocanon
ProxyPassReverse /_matrix http://127.0.0.1:8008/_matrix
ProxyPass /_synapse/client http://127.0.0.1:8008/_synapse/client nocanon
ProxyPassReverse /_synapse/client http://127.0.0.1:8008/_synapse/client
<IfModule security2_module>
SecRuleEngine off
</IfModule>
</VirtualHost>
<VirtualHost *:8448>
SSLEngine on
ServerName oe8bck.at
Include /etc/letsencrypt/options-ssl-apache.conf
SSLCertificateFile /etc/letsencrypt/live/...
SSLCertificateKeyFile /etc/letsencrypt/live/...
RequestHeader set "X-Forwarded-Proto"expr=%{REQUEST_SCHEME}
AllowEncodedSlashes NoDecode
ProxyPass /_matrix http://127.0.0.1:8008/_matrix nocanon
ProxyPassReverse /_matrix http://127.0.0.1:8008/_matrix
<IfModule security2_module>
SecRuleEngine off
</IfModule>
</VirtualHost>
Verifiquei o certificado TLS, é válido. Mas a federação não funciona! Eu verifiquei comhttps://federationtester.matrix.org/api/report?server_name=matrix.oe8bck.atmas não consigo ver o motivo desses erros:
"Message": "Get \"https://88.116.94.22:8448/_matrix/key/v2/server\": dial tcp
88.116.94.22:8448: connect: connection refused"
"error": "Get \"matrix://matrix.oe8bck.at/_matrix/federation/v1/version\": dial tcp 88.116.94.22:8448: connect: connection refused"
Talvez alguém possa me ajudar?