Skip to content

Commit 3b81f09

Browse files
committed
Make various Cinny options configurable via dedicated variables
Provoked by etkecc/mrs#4 I've discovered that Cinny supports various configuration options and it'd be better if we add support for them.
1 parent c95d181 commit 3b81f09

File tree

2 files changed

+27
-2
lines changed

2 files changed

+27
-2
lines changed

roles/custom/matrix-client-cinny/defaults/main.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,9 +147,27 @@ matrix_client_cinny_self_check_validate_certificates: true
147147
# See `matrix_client_cinny_config_homeserverList`.
148148
matrix_client_cinny_default_hs_url: ""
149149

150+
# Controls the `defaultHomeserver` value in the `config.json` file.
151+
matrix_client_cinny_config_defaultHomeserver: 0 # noqa var-naming
152+
150153
# Controls the `homeserverList` value in the `config.json` file.
151154
matrix_client_cinny_config_homeserverList: "{{ [matrix_client_cinny_default_hs_url] }}" # noqa var-naming
152155

156+
# Controls the `allowCustomHomeservers` value in the `config.json` file.
157+
matrix_client_cinny_config_allowCustomHomeservers: true # noqa var-naming
158+
159+
# Controls the `featuredCommunities.spaces` value in the `config.json` file.
160+
matrix_client_cinny_config_featuredCommunities_spaces: [] # noqa var-naming
161+
162+
# Controls the `featuredCommunities.rooms` value in the `config.json` file.
163+
matrix_client_cinny_config_featuredCommunities_rooms: [] # noqa var-naming
164+
165+
# Controls the `featuredCommunities.servers` value in the `config.json` file.
166+
matrix_client_cinny_config_featuredCommunities_servers: ["matrix.org"] # noqa var-naming
167+
168+
# Controls the `featuredCommunities.openAsDefault` value in the `config.json` file.
169+
matrix_client_cinny_config_featuredCommunities_openAsDefault: false # noqa var-naming
170+
153171
# Default Cinny configuration template which covers the generic use case.
154172
# You can customize it by controlling the various variables inside it.
155173
#
Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,11 @@
11
{
2-
"defaultHomeserver": 0,
3-
"homeserverList": {{ matrix_client_cinny_config_homeserverList | to_json }}
2+
"defaultHomeserver": {{ matrix_client_cinny_config_defaultHomeserver | to_json }},
3+
"homeserverList": {{ matrix_client_cinny_config_homeserverList | to_json }},
4+
"allowCustomHomeservers": {{ matrix_client_cinny_config_allowCustomHomeservers | to_json }},
5+
"featuredCommunities": {
6+
"spaces": {{ matrix_client_cinny_config_featuredCommunities_spaces | to_json }},
7+
"rooms": {{ matrix_client_cinny_config_featuredCommunities_rooms | to_json }},
8+
"servers": {{ matrix_client_cinny_config_featuredCommunities_servers | to_json }},
9+
"openAsDefault": {{ matrix_client_cinny_config_featuredCommunities_openAsDefault | to_json }}
10+
}
411
}

0 commit comments

Comments
 (0)