mash-playbook/docs/services/mrs.md

49 lines
1.7 KiB
Markdown
Raw Normal View History

2023-04-12 12:49:51 +02:00
# Matrix Rooms Search API
2023-04-12 13:29:11 +02:00
[Matrix Rooms Search](https://gitlab.com/etke.cc/mrs) is a fully-featured, standalone, [Matrix](https://matrix.org/) rooms search service.
2023-04-12 12:49:51 +02:00
## Dependencies
This service requires the following other services:
- a [Traefik](traefik.md) reverse-proxy server
## Configuration
To enable this service, add the following configuration to your `vars.yml` file and re-run the [installation](../installing.md) process:
```yaml
########################################################################
# #
# mrs #
# #
########################################################################
mrs_enabled: true
mrs_hostname: mrs.example.com
mrs_admin_login: admin
mrs_admin_password: changeme
mrs_admin_ips:
2023-04-12 13:29:11 +02:00
- 123.123.123.123
2023-04-12 12:49:51 +02:00
mrs_servers:
2023-04-12 13:29:11 +02:00
- matrix.org
2023-04-12 12:49:51 +02:00
########################################################################
# #
# /mrs #
# #
########################################################################
```
In the example configuration above, we configure the service to be hosted at `https://mrs.example.com`.
## Usage
2023-04-12 13:29:11 +02:00
After installation, call the `https://mrs.example.com/-/full` endpoint using admin credentials (see the `mrs_admin_*` variables) to discover and parse content.
2023-04-12 12:49:51 +02:00
2023-04-12 13:29:11 +02:00
To see the list of supported public and private APIs, see the [API documentation](https://gitlab.com/etke.cc/mrs/api/-/blob/main/openapi.yml).