Documented how to create an admin user in Synapse.

This commit is contained in:
Hans van Zijst 2024-11-13 14:56:10 +01:00 committed by Valentin Gagarin
parent 184e89e586
commit 11a33bd6af

View file

@ -112,6 +112,30 @@ After changing the database, restart Synapse and check whether it can connect
and create the tables it needs.
# Create admin
Synapse doesn't create an admin account at install time, so you'll have to do
that yourself.
You need to set a `registration_shared_secret` for this, set that in
`conf.d/keys.yaml` like this:
```
registration_shared_secret: xxxx
```
You can create such a key by running `pwgen -csn 52 1`. Restart Synapse after
setting this key.
Now create an admin user. Login and issue this command:
```
register_new_matrix_user -u admin -a -c /etc/matrix-synapse/conf.d/keys.yaml
```
This will ask for a password, choose a safe one.
# Logging
Logging is configured in `log.yaml`. Some logging should go to systemd, the