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

2.6k views Asked by At

I have deployed single instance running for home-server(synapse) with multiple domain attached to it as example.com and example1.com. I want to create the users like [email protected] and [email protected]

Is is possible ? Let me know advance?

2

There are 2 answers

0
Asha'man On BEST ANSWER

You can install multiple instances of synapse using python virtual environments. Configure each instance to listen only on localhost, on different ports. Then use an nginx reverse proxy to direct traffic to the correct instance based on the domain name requested.

0
david On

As far my knowledge goes this is currently not possible.

Whenever you setup a Matrix Synapse homeserver you define a unique name (=domain). See in the 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.