瀏覽代碼

add variables for secure_backup_required and secure_backup_setup_methods

pull/679/head
Tobias Küchel 5 年之前
父節點
當前提交
48f929dc91
共有 2 個文件被更改,包括 30 次插入5 次删除
  1. +10
    -0
      roles/matrix-base/defaults/main.yml
  2. +20
    -5
      roles/matrix-base/templates/static-files/well-known/matrix-client.j2

+ 10
- 0
roles/matrix-base/defaults/main.yml 查看文件

@@ -67,6 +67,16 @@ matrix_client_element_jitsi_preferredDomain: ''
# See: https://github.com/vector-im/element-web/blob/develop/docs/e2ee.md
matrix_client_element_e2ee_default: true

# Controls whether Element should require a secure backup set up before Element can be used.
# Setting this to true will update `/.well-known/matrix/client` and tell Element require a secure backup.
# See: https://github.com/vector-im/element-web/blob/develop/docs/e2ee.md
matrix_client_element_e2ee_backup_required: false

# Controls which backup methods from ["key", "passphrase"] should be used, both is the default.
# Setting this to other then empty will update `/.well-known/matrix/client` and tell Element which method to use
# See: https://github.com/vector-im/element-web/blob/develop/docs/e2ee.md
matrix_client_element_e2ee_backup_methods: []

# The Docker network that all services would be put into
matrix_docker_network: "matrix"



+ 20
- 5
roles/matrix-base/templates/static-files/well-known/matrix-client.j2 查看文件

@@ -26,12 +26,27 @@
"preferredDomain": {{ matrix_client_element_jitsi_preferredDomain|to_json }}
}
{% endif %}
{% if not matrix_client_element_e2ee_default %},
"io.element.e2ee": {
"default": false
,
"io.element.e2ee": {
{% if not matrix_client_element_e2ee_default %}
"default": false
{% else %}
"default": true
{% endif %}
{% if matrix_client_element_e2ee_backup_required %},
"secure_backup_required": true
{% else %}
"secure_backup_required": false
{% endif %}
{% if matrix_client_element_e2ee_backup_methods %},
"secure_backup_setup_methods": {{ matrix_client_element_e2ee_backup_methods|to_json }}
{% endif %}
},
"im.vector.riot.e2ee": {
"default": false
{% if not matrix_client_element_e2ee_default %}
"default": false
{% else %}
"default": true
{% endif %}
}
{% endif %}
}

Loading…
取消
儲存