matrix.org 中的多租户,适用于具有多域的单个家庭服务器

Multi-tenancy in the matrix.org for single homeserver with multi domain

我已经为家庭服务器(synapse)部署了单个实例 运行,并附加了多个域,如 example.com 和 example1.com。 我想创建像 b1@example.com 和 b1@example1.com

这样的用户

有可能吗? 让我提前知道?

据我所知,目前这是不可能的。

无论何时设置 Matrix Synapse 家庭服务器,您都会定义一个唯一名称(=域)。参见 Synapse docs:

The server name determines the "domain" part of user-ids for users on your server: these will all be of the format @user:my.domain.name. It also determines how other matrix servers will reach yours for Federation. ... Beware that the server name cannot be changed later.

您可以使用 python 虚拟环境安装多个突触实例。将每个实例配置为仅在不同端口上的本地主机上侦听。然后使用 nginx 反向代理根据请求的域名将流量定向到正确的实例。