From ffa5484cc3c183b17f3102f0ac6ffdfd82cf44bd Mon Sep 17 00:00:00 2001 From: Aine Date: Mon, 21 Oct 2024 23:58:05 +0300 Subject: [PATCH] synapse-admin v0.10.3-etke22 --- .../matrix-synapse-admin/defaults/main.yml | 18 +++++++++++++++++- .../templates/config.json.j2 | 1 + 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/roles/custom/matrix-synapse-admin/defaults/main.yml b/roles/custom/matrix-synapse-admin/defaults/main.yml index f3fa74025..21615a4f6 100644 --- a/roles/custom/matrix-synapse-admin/defaults/main.yml +++ b/roles/custom/matrix-synapse-admin/defaults/main.yml @@ -14,7 +14,7 @@ matrix_synapse_admin_container_image_self_build: false matrix_synapse_admin_container_image_self_build_repo: "https://github.com/etkecc/synapse-admin.git" # renovate: datasource=docker depName=ghcr.io/etkecc/synapse-admin -matrix_synapse_admin_version: v0.10.3-etke21 +matrix_synapse_admin_version: v0.10.3-etke22 matrix_synapse_admin_docker_image: "{{ matrix_synapse_admin_docker_image_name_prefix }}etkecc/synapse-admin:{{ matrix_synapse_admin_version }}" matrix_synapse_admin_docker_image_name_prefix: "{{ 'localhost/' if matrix_synapse_admin_container_image_self_build else 'ghcr.io/' }}" matrix_synapse_admin_docker_image_force_pull: "{{ matrix_synapse_admin_docker_image.endswith(':latest') }}" @@ -175,7 +175,23 @@ matrix_synapse_admin_configuration: "{{ matrix_synapse_admin_configuration_defau # restricts the homeserver(s), so that the user can no longer define a homeserver manually during login. matrix_synapse_admin_config_restrictBaseUrl: "{{ [matrix_homeserver_url] }}" # noqa var-naming +# Controls the menu configuration setting, which, if defined, adds new menu items to the Synapse Admin UI. +# The format is a list of objects, where each object has the following keys: +# - `label` (string): The label of the menu item. +# - `icon` (string): The icon of the menu item, one of the https://github.com/etkecc/synapse-admin/blob/main/src/components/icons.ts +# - `url` (string): The URL of the menu item. +# Example: +# [ +# { +# "label": "Contact support", +# "icon": "SupportAgent", +# "url": "https://github.com/spantaleev/matrix-docker-ansible-deploy/issues" +# } +# ] +matrix_synapse_admin_config_menu: [] + # Controls the supportURL configuration setting, which, if defined, replaces the default link to the Synapse Admin GitHub repository. +# DEPRECATED: use matrix_synapse_admin_config_menu instead (migrated automatically). matrix_synapse_admin_config_supportURL: '' # noqa var-naming # Controls the asManagedUsers configuration setting (managed by playbook), which, if defined, diff --git a/roles/custom/matrix-synapse-admin/templates/config.json.j2 b/roles/custom/matrix-synapse-admin/templates/config.json.j2 index a6fbd824f..672a979c5 100644 --- a/roles/custom/matrix-synapse-admin/templates/config.json.j2 +++ b/roles/custom/matrix-synapse-admin/templates/config.json.j2 @@ -2,4 +2,5 @@ "restrictBaseUrl": {{ matrix_synapse_admin_config_restrictBaseUrl | to_json }}, "asManagedUsers": {{ matrix_synapse_admin_config_asManagedUsers | to_json }}, "supportURL": {{ matrix_synapse_admin_config_supportURL | to_json }}, + "menu": {{ matrix_synapse_admin_config_menu | to_json }}, }