2020-07-22 07:10:26 +02:00
# Setting up Synapse Admin (optional)
The playbook can install and configure [synapse-admin ](https://github.com/Awesome-Technologies/synapse-admin ) for you.
It's a web UI tool you can use to **administrate users and rooms on your Matrix server** .
See the project's [documentation ](https://github.com/Awesome-Technologies/synapse-admin ) to learn what it does and why it might be useful to you.
2020-07-26 19:14:36 +02:00
2020-07-22 07:10:26 +02:00
## Adjusting the playbook configuration
Add the following configuration to your `inventory/host_vars/matrix.DOMAIN/vars.yml` file:
```yaml
matrix_synapse_admin_enabled: true
```
2020-10-27 19:41:52 +01:00
**Note**: Synapse Admin requires Synapse's [Admin APIs ](https://github.com/matrix-org/synapse/tree/master/docs/admin_api ) to function. Access to them is restricted with a valid access token, so exposing them publicly should not be a real security concern. Still, for additional security, we normally leave them unexposed, following [official Synapse reverse-proxying recommendations ](https://github.com/matrix-org/synapse/blob/master/docs/reverse_proxy.md#synapse-administration-endpoints ). Because Synapse Admin needs these APIs to function, when installing Synapse Admin, we **automatically** exposes them publicly for you (equivalent to `matrix_nginx_proxy_proxy_matrix_client_api_forwarded_location_synapse_admin_api_enabled: true` ).
2020-10-27 19:33:37 +01:00
2020-07-26 19:14:36 +02:00
2020-07-22 07:10:26 +02:00
## Installing
After configuring the playbook, run the [installation ](installing.md ) command again:
```
ansible-playbook -i inventory/hosts setup.yml --tags=setup-all,start
```
2020-07-26 19:14:36 +02:00
2020-07-22 07:10:26 +02:00
## Usage
After installation, Synapse Admin will be accessible at: `https://matrix.DOMAIN/synapse-admin/`
To use Synapse Admin, you need to have [registered at least one administrator account ](registering-users.md ) on your server.
The Homeserver URL to use on Synapse Admin's login page is: `https://matrix.DOMAIN`
2020-07-26 17:31:43 +02:00
### Sample configuration for running behind Traefik 2.0
Below is a sample configuration for using this playbook with a [Traefik ](https://traefik.io/ ) 2.0 reverse proxy.
This an extension to Traefik config sample in [own-webserver-documentation ](./configuring-playbook-own-webserver.md ).
```yaml
# Don't bind any HTTP or federation port to the host
# (Traefik will proxy directly into the containers)
matrix_synapse_admin_container_http_host_bind_port: ""
matrix_synapse_admin_container_extra_arguments:
# May be unnecessary depending on Traefik config, but can't hurt
- '--label "traefik.enable=true"'
# The Synapse Admin container will only receive traffic from this subdomain and path
2020-07-26 19:14:36 +02:00
- '--label "traefik.http.routers.matrix-synapse-admin.rule=(Host(`{{ matrix_server_fqn_matrix }}`) && Path(`{{matrix_synapse_admin_public_endpoint}}`))"'
2020-07-26 17:31:43 +02:00
# (Define your entrypoint)
- '--label "traefik.http.routers.matrix-synapse-admin.entrypoints=web-secure"'
# (The 'default' certificate resolver must be defined in Traefik config)
- '--label "traefik.http.routers.matrix-synapse-admin.tls.certResolver=default"'
2020-07-26 21:27:54 +02:00
# The Synapse Admin container uses port 80 by default
- '--label "traefik.http.services.matrix-synapse-admin.loadbalancer.server.port=80"'
2020-07-26 17:31:43 +02:00
```