我根据以下描述成功设置了我的家庭服务器https://linuxhandbook.com/install-matrix-synapse-docker/使用 docker 镜像。
我必须稍微修改一下,因为我使用 Apache 作为反向代理。这是我从另一个示例中得到的:
<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>
我检查了 TLS 证书,它是有效的。但联盟不起作用!我用https://federationtester.matrix.org/api/report?server_name=matrix.oe8bck.at但我看不出这些错误的原因:
"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"
也许有人可以帮助我?