spantaleev / matrix-docker-ansible-deploy

🐳 Matrix (An open network for secure, decentralized communication) server setup using Ansible and Docker
GNU Affero General Public License v3.0
4.76k stars 1.03k forks source link

Use mxisd for user directory searches #77

Closed spantaleev closed 5 years ago

spantaleev commented 5 years ago

If mxisd is enabled (which it is by default), we should reverse-proxy the following endpoint: /_matrix/client/r0/user_directory/search over to mxisd.

By default, mxisd uses Synapse's database as a source. So it may seem like it will be returning the same data in such a case. However, mxisd can also search by 3PIDs.

Another benefit would be for users who enable identity store (LDAP, etc.) - making the identity store's users searchable as well.

Additional integration information is here: https://github.com/kamax-matrix/mxisd/blob/master/docs/features/directory.md

spantaleev commented 5 years ago

Note to self: when setting up the DNS override, we also need to make matrix-mxisd.service depend on matrix-synapse.service.

spantaleev commented 5 years ago

Implemented in cb11548 and ba75ab4.