瀏覽代碼

Add `matrix_client_cinny_config_homeserverList` variable

pull/3893/head
Slavi Pantaleev 1 年之前
父節點
當前提交
c95d181c9a
共有 2 個檔案被更改,包括 6 行新增4 行删除
  1. +5
    -1
      roles/custom/matrix-client-cinny/defaults/main.yml
  2. +1
    -3
      roles/custom/matrix-client-cinny/templates/config.json.j2

+ 5
- 1
roles/custom/matrix-client-cinny/defaults/main.yml 查看文件

@@ -143,9 +143,13 @@ matrix_client_cinny_path_prefix: /
# Controls whether the self-check feature should validate SSL certificates.
matrix_client_cinny_self_check_validate_certificates: true

# config.json
# Default homeserver URL to use in the `config.json` file.
# See `matrix_client_cinny_config_homeserverList`.
matrix_client_cinny_default_hs_url: ""

# Controls the `homeserverList` value in the `config.json` file.
matrix_client_cinny_config_homeserverList: "{{ [matrix_client_cinny_default_hs_url] }}" # noqa var-naming

# Default Cinny configuration template which covers the generic use case.
# You can customize it by controlling the various variables inside it.
#


+ 1
- 3
roles/custom/matrix-client-cinny/templates/config.json.j2 查看文件

@@ -1,6 +1,4 @@
{
"defaultHomeserver": 0,
"homeserverList": [
{{ matrix_client_cinny_default_hs_url | string|to_json }}
]
"homeserverList": {{ matrix_client_cinny_config_homeserverList | to_json }}
}

Loading…
取消
儲存