From cde5a7cdc1febe519e0d039a6ae3412f208021f2 Mon Sep 17 00:00:00 2001 From: Suguru Hirahara Date: Fri, 10 Jan 2025 19:18:53 +0900 Subject: [PATCH] Update docs for Element Web and SchildiChat Web: add examples of extending the configuration This follows docs/configuring-playbook-appservice-draupnir-for-all.md, etc. Note the examples are available on the main.yml files. Signed-off-by: Suguru Hirahara --- .../configuring-playbook-client-element-web.md | 18 ++++++++++++++++++ ...figuring-playbook-client-schildichat-web.md | 18 ++++++++++++++++++ 2 files changed, 36 insertions(+) diff --git a/docs/configuring-playbook-client-element-web.md b/docs/configuring-playbook-client-element-web.md index 95ff9b3b2..bcb54bc87 100644 --- a/docs/configuring-playbook-client-element-web.md +++ b/docs/configuring-playbook-client-element-web.md @@ -64,6 +64,24 @@ Take a look at: - `roles/custom/matrix-client-element/defaults/main.yml` for some variables that you can customize via your `vars.yml` file - `roles/custom/matrix-client-element/templates/config.json.j2` for the component's default configuration. You can override settings (even those that don't have dedicated playbook variables) using the `matrix_client_element_configuration_extension_json` variable +For example, to override some Element Web settings, add the following configuration to your `inventory/host_vars/matrix.example.com/vars.yml` file: + +```yaml + # Your custom JSON configuration for Element Web should go to `matrix_client_element_configuration_extension_json`. + # This configuration extends the default starting configuration (`matrix_client_element_configuration_default`). + # + # You can override individual variables from the default configuration, or introduce new ones. + # + # If you need something more special, you can take full control by + # completely redefining `matrix_client_element_configuration_default`. + # +matrix_client_element_configuration_extension_json: | + { + "disable_3pid_login": true, + "disable_login_language_selector": true + } +``` + ## Adjusting DNS records Once you've decided on the domain and path, **you may need to adjust your DNS** records to point the Element Web domain to the Matrix server. diff --git a/docs/configuring-playbook-client-schildichat-web.md b/docs/configuring-playbook-client-schildichat-web.md index 8c93535b1..0a67f04be 100644 --- a/docs/configuring-playbook-client-schildichat-web.md +++ b/docs/configuring-playbook-client-schildichat-web.md @@ -71,6 +71,24 @@ Take a look at: - `roles/custom/matrix-client-schildichat/defaults/main.yml` for some variables that you can customize via your `vars.yml` file - `roles/custom/matrix-client-schildichat/templates/config.json.j2` for the component's default configuration. You can override settings (even those that don't have dedicated playbook variables) using the `matrix_client_schildichat_configuration_extension_json` variable +For example, to override some SchildiChat Web settings, add the following configuration to your `inventory/host_vars/matrix.example.com/vars.yml` file: + +```yaml + # Your custom JSON configuration for SchildiChat Web should go to `matrix_client_schildichat_configuration_extension_json`. + # This configuration extends the default starting configuration (`matrix_client_schildichat_configuration_default`). + # + # You can override individual variables from the default configuration, or introduce new ones. + # + # If you need something more special, you can take full control by + # completely redefining `matrix_client_schildichat_configuration_default`. + # +matrix_client_schildichat_configuration_extension_json: | + { + "disable_3pid_login": true, + "disable_login_language_selector": true + } +``` + ## Adjusting DNS records Once you've decided on the domain and path, **you may need to adjust your DNS** records to point the SchildiChat Web domain to the Matrix server.