mirror of
				https://github.com/spantaleev/matrix-docker-ansible-deploy.git
				synced 2025-10-31 15:27:56 +01:00 
			
		
		
		
	* Add logout_redirect_url var and option templating for matrix element client
* Simplify logout_redirect_url templating and make it safer
Using `to_json` to make it safer.
Judging by the code here 0b24d33c64/src/Lifecycle.ts (L1026-L1032)
it doesn't seem like it leaving `logout_redirect_url` empty will hurt, so this patch removes the `if` block.
* Add comment for the `matrix_client_element_logout_redirect_url` variable
---------
Co-authored-by: Slavi Pantaleev <slavi@devture.com>
		
	
		
			
				
	
	
		
			50 lines
		
	
	
		
			2.5 KiB
		
	
	
	
		
			Django/Jinja
		
	
	
	
	
	
			
		
		
	
	
			50 lines
		
	
	
		
			2.5 KiB
		
	
	
	
		
			Django/Jinja
		
	
	
	
	
	
| {
 | |
| 	"default_server_config": {
 | |
| 		"m.homeserver": {
 | |
| 			"base_url": {{ matrix_client_element_default_hs_url | string | to_json }},
 | |
| 			"server_name": {{ matrix_client_element_default_server_name | string | to_json }}
 | |
| 		},
 | |
| 		"m.identity_server": {
 | |
| 			"base_url": {{ matrix_client_element_default_is_url | string | to_json }}
 | |
| 		}
 | |
| 	},
 | |
| 	"setting_defaults": {
 | |
| 		"custom_themes": {{ matrix_client_element_setting_defaults_custom_themes | to_json }}
 | |
| 	},
 | |
| 	"default_theme": {{ matrix_client_element_default_theme | string | to_json }},
 | |
| 	"default_country_code": {{ matrix_client_element_default_country_code | string | to_json }},
 | |
| 	"permalink_prefix": {{ matrix_client_element_permalink_prefix | string | to_json }},
 | |
| 	"disable_custom_urls": {{ matrix_client_element_disable_custom_urls | to_json }},
 | |
| 	"disable_guests": {{ matrix_client_element_disable_guests | to_json }},
 | |
| 	"brand": {{ matrix_client_element_brand | to_json }},
 | |
| 	"integrations_ui_url": {{ matrix_client_element_integrations_ui_url | string | to_json }},
 | |
| 	"integrations_rest_url": {{ matrix_client_element_integrations_rest_url | string | to_json }},
 | |
| 	"integrations_widgets_urls": {{ matrix_client_element_integrations_widgets_urls | to_json }},
 | |
| 	"integrations_jitsi_widget_url": {{ matrix_client_element_integrations_jitsi_widget_url | string | to_json }},
 | |
| 	"bug_report_endpoint_url": {{ matrix_client_element_bug_report_endpoint_url | to_json }},
 | |
| 	"show_labs_settings": {{ matrix_client_element_show_lab_settings | to_json }},
 | |
| 	"room_directory": {
 | |
| 		"servers": {{ matrix_client_element_room_directory_servers | to_json }}
 | |
| 	},
 | |
| 	{% if matrix_client_element_enable_presence_by_hs_url is not none %}
 | |
| 		"enable_presence_by_hs_url": {{ matrix_client_element_enable_presence_by_hs_url | to_json }},
 | |
| 	{% endif %}
 | |
| 	"embedded_pages": {
 | |
| 		"homeUrl": {{ matrix_client_element_embedded_pages_home_url | string | to_json }}
 | |
| 	},
 | |
| 	{% if matrix_client_element_jitsi_preferred_domain %}
 | |
| 	"jitsi": {
 | |
|         "preferred_domain": {{ matrix_client_element_jitsi_preferred_domain | to_json }}
 | |
|     },
 | |
| 	{% endif %}
 | |
| 	{% if matrix_client_element_location_sharing_enabled %}
 | |
| 	"map_style_url": {{ matrix_client_element_map_style_url | to_json }},
 | |
| 	{% endif %}
 | |
| 	"logout_redirect_url": {{ matrix_client_element_logout_redirect_url | to_json }},
 | |
| 	"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 }},
 | |
| 		"welcome_background_url": {{ matrix_client_element_branding_welcome_background_url | to_json }}
 | |
| 	}
 | |
| }
 |