From 2df3bc4297ce1696ccc5e2ccbd6adc22b067b646 Mon Sep 17 00:00:00 2001 From: zacharytyhacz Date: Sun, 17 Jul 2022 16:37:00 -0400 Subject: Matrix - added note about macaroon_secret_key and registration_shared_secret keys --- content/matrix.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/content/matrix.md b/content/matrix.md index 39a4127..893d58a 100644 --- a/content/matrix.md +++ b/content/matrix.md @@ -91,6 +91,7 @@ certbot --nginx -d matrix.example.org ## Configuration + ### Read the config file The configuration file for Matrix is in @@ -111,9 +112,25 @@ choices for creating a user, among which will be the ability to make it an admin. ```sh +cd /etc/matrix-synapse + register_new_matrix_user -c homeserver.yaml http://localhost:8008 ``` +### Error Shared secret registration is not enabled + +Sometimes the default configuration is not fully setup, so you need +to add the following the keys to your `homeserver.yaml`: + +- `macaroon_secret_key` +- `registration_shared_secret` + +Make sure to restart Matrix Synapse + +```sh +systemctl restart matrix-synapse +``` + ## Using Matrix with ![Element Matrix logo](/pix/element.svg)Element There are many different [clients](https://matrix.org/clients/) that can -- cgit v1.2.3