From b62302d547924a66354c7300d9a1ce00fee446ca Mon Sep 17 00:00:00 2001 From: Philippe Villanueva Date: Mon, 23 Dec 2024 16:13:18 +0100 Subject: [PATCH] Add logout_redirect_url var and option templating for matrix element client --- roles/custom/matrix-client-element/defaults/main.yml | 2 ++ roles/custom/matrix-client-element/templates/config.json.j2 | 3 +++ 2 files changed, 5 insertions(+) diff --git a/roles/custom/matrix-client-element/defaults/main.yml b/roles/custom/matrix-client-element/defaults/main.yml index 8f9c66a67..2100b4ad3 100644 --- a/roles/custom/matrix-client-element/defaults/main.yml +++ b/roles/custom/matrix-client-element/defaults/main.yml @@ -318,3 +318,5 @@ matrix_client_element_location_sharing_map_style_content_sources_localsource_til # matrix_client_element_location_sharing_map_style_content_sources_localsource_attribution: "© OpenStreetMap contributors" # Leave blank, if map does not require attribution. matrix_client_element_location_sharing_map_style_content_sources_localsource_attribution: "" + +matrix_client_element_logout_redirect_url: '' diff --git a/roles/custom/matrix-client-element/templates/config.json.j2 b/roles/custom/matrix-client-element/templates/config.json.j2 index e45e68065..dbd2a9bfa 100644 --- a/roles/custom/matrix-client-element/templates/config.json.j2 +++ b/roles/custom/matrix-client-element/templates/config.json.j2 @@ -40,6 +40,9 @@ {% if matrix_client_element_location_sharing_enabled %} "map_style_url": {{ matrix_client_element_map_style_url | to_json }}, {% endif %} + {% if matrix_client_element_logout_redirect_url != '' %} + "logout_redirect_url": "{{ matrix_client_element_logout_redirect_url }}", + {% endif %} "branding": { "auth_footer_links": {{ matrix_client_element_branding_auth_footer_links | to_json }}, "auth_header_logo_url": {{ matrix_client_element_branding_auth_header_logo_url | to_json }},