Skip to content

Commit

Permalink
Add matrix_client_cinny_config_homeserverList variable
Browse files Browse the repository at this point in the history
  • Loading branch information
spantaleev committed Dec 21, 2024
1 parent e533eef commit c95d181
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
6 changes: 5 additions & 1 deletion roles/custom/matrix-client-cinny/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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.
#
Expand Down
4 changes: 1 addition & 3 deletions roles/custom/matrix-client-cinny/templates/config.json.j2
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
{
"defaultHomeserver": 0,
"homeserverList": [
{{ matrix_client_cinny_default_hs_url | string|to_json }}
]
"homeserverList": {{ matrix_client_cinny_config_homeserverList | to_json }}
}

0 comments on commit c95d181

Please sign in to comment.