Просмотр исходного кода

Add variable for controlling force_disable in io.element.e2ee in /.well-known/matrix/client

pull/3117/head
Slavi Pantaleev 2 лет назад
Родитель
Сommit
dbebe7c598
2 измененных файлов: 8 добавлений и 1 удалений
  1. +6
    -0
      roles/custom/matrix-static-files/defaults/main.yml
  2. +2
    -1
      roles/custom/matrix-static-files/templates/public/.well-known/matrix/client.j2

+ 6
- 0
roles/custom/matrix-static-files/defaults/main.yml Просмотреть файл

@@ -176,6 +176,12 @@ matrix_static_files_file_matrix_client_property_io_element_e2ee_secure_backup_re
# See: https://github.com/element-hq/element-web/blob/develop/docs/e2ee.md # See: https://github.com/element-hq/element-web/blob/develop/docs/e2ee.md
matrix_static_files_file_matrix_client_property_io_element_e2ee_secure_backup_setup_methods: [] matrix_static_files_file_matrix_client_property_io_element_e2ee_secure_backup_setup_methods: []


# Controls the io.element.e2ee/force_disable property in the /.well-known/matrix/client file,
# which can be set to `true` to instruct Element whether to disable End-to-End Encryption by default
# and to not show encryption related-settings in room settings.
# See: https://github.com/element-hq/element-web/blob/develop/docs/e2ee.md
matrix_static_files_file_matrix_client_property_io_element_e2ee_force_disable: false

# Default /.well-known/matrix/client configuration template which covers the generic use case. # Default /.well-known/matrix/client configuration template which covers the generic use case.
# You can customize it by controlling the various variables inside it. # You can customize it by controlling the various variables inside it.
# #


+ 2
- 1
roles/custom/matrix-static-files/templates/public/.well-known/matrix/client.j2 Просмотреть файл

@@ -39,7 +39,8 @@
"io.element.e2ee": { "io.element.e2ee": {
"default": {{ matrix_static_files_file_matrix_client_property_io_element_e2ee_default|to_json }}, "default": {{ matrix_static_files_file_matrix_client_property_io_element_e2ee_default|to_json }},
"secure_backup_required": {{ matrix_static_files_file_matrix_client_property_io_element_e2ee_secure_backup_required|to_json }}, "secure_backup_required": {{ matrix_static_files_file_matrix_client_property_io_element_e2ee_secure_backup_required|to_json }},
"secure_backup_setup_methods": {{ matrix_static_files_file_matrix_client_property_io_element_e2ee_secure_backup_setup_methods|to_json }}
"secure_backup_setup_methods": {{ matrix_static_files_file_matrix_client_property_io_element_e2ee_secure_backup_setup_methods|to_json }},
"force_disable": {{ matrix_static_files_file_matrix_client_property_io_element_e2ee_force_disable|to_json }}
} }
{% endif %} {% endif %}
{% if matrix_static_files_file_matrix_client_property_io_element_e2ee_entries_enabled %}, {% if matrix_static_files_file_matrix_client_property_io_element_e2ee_entries_enabled %},


Загрузка…
Отмена
Сохранить