From 96cb6bb2642ccab0eadec8b972a0a9ead7d017b3 Mon Sep 17 00:00:00 2001 From: Suguru Hirahara Date: Thu, 12 Dec 2024 15:24:31 +0900 Subject: [PATCH] Update docs/configuring-playbook-bot-mjolnir: adjust the section hierarchy Signed-off-by: Suguru Hirahara --- docs/configuring-playbook-bot-mjolnir.md | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/docs/configuring-playbook-bot-mjolnir.md b/docs/configuring-playbook-bot-mjolnir.md index 9c9d66996..cdb5cddc1 100644 --- a/docs/configuring-playbook-bot-mjolnir.md +++ b/docs/configuring-playbook-bot-mjolnir.md @@ -103,6 +103,18 @@ You must replace `ACCESS_TOKEN_FROM_STEP_2_GOES_HERE` with your own value. matrix_bot_mjolnir_access_token: "ACCESS_TOKEN_FROM_STEP_2_GOES_HERE" ``` +### Adding Mjolnir synapse antispam module (optional) + +To enable Mjolnir synapse antispam module, add the following configuration to your `inventory/host_vars/matrix.example.com/vars.yml` file (adapt to your needs): + +```yaml +matrix_synapse_ext_spam_checker_mjolnir_antispam_enabled: true +matrix_synapse_ext_spam_checker_mjolnir_antispam_config_block_invites: true +matrix_synapse_ext_spam_checker_mjolnir_antispam_config_block_messages: false +matrix_synapse_ext_spam_checker_mjolnir_antispam_config_block_usernames: false +matrix_synapse_ext_spam_checker_mjolnir_antispam_config_ban_lists: [] +``` + ### Extending the configuration You can configure additional options by adding the `matrix_bot_mjolnir_configuration_extension_yaml` variable to your `inventory/host_vars/matrix.example.com/vars.yml` file. @@ -121,18 +133,6 @@ matrix_bot_mjolnir_configuration_extension_yaml: | recordIgnoredInvites: true ``` -## Adding Mjolnir synapse antispam module (optional) - -Add the following configuration to your `inventory/host_vars/matrix.example.com/vars.yml` file (adapt to your needs): - -```yaml -matrix_synapse_ext_spam_checker_mjolnir_antispam_enabled: true -matrix_synapse_ext_spam_checker_mjolnir_antispam_config_block_invites: true -matrix_synapse_ext_spam_checker_mjolnir_antispam_config_block_messages: false -matrix_synapse_ext_spam_checker_mjolnir_antispam_config_block_usernames: false -matrix_synapse_ext_spam_checker_mjolnir_antispam_config_ban_lists: [] -``` - ## Installing After configuring the playbook, run it with [playbook tags](playbook-tags.md) as below: