Parcourir la source

Add `matrix_client_cinny_config_homeserverList` variable

pull/3893/head
Slavi Pantaleev il y a 1 an
Parent
révision
c95d181c9a
2 fichiers modifiés avec 6 ajouts et 4 suppressions
  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 Voir le fichier

@@ -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 Voir le fichier

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

Chargement…
Annuler
Enregistrer