Просмотр исходного кода

Rework Element Call config.json templating

element-call-integration
Slavi Pantaleev 11 месяцев назад
Родитель
Сommit
23efad9cb7
3 измененных файлов: 13 добавлений и 4 удалений
  1. +9
    -0
      roles/custom/matrix-element-call/defaults/main.yml
  2. +3
    -3
      roles/custom/matrix-element-call/templates/config.json.j2
  3. +1
    -1
      roles/custom/matrix-element-call/templates/config.json.j2.license

+ 9
- 0
roles/custom/matrix-element-call/defaults/main.yml Просмотреть файл

@@ -137,3 +137,12 @@ matrix_element_call_hsts_preload_enabled: false
# Enable or disable metrics collection
matrix_element_call_metrics_enabled: false
matrix_element_call_metrics_port: 2112

# Controls the default_server_config/m.homeserver/base_url property in the config.json file.
matrix_element_call_config_default_server_config_m_homeserver_base_url: "{{ matrix_homeserver_url }}"

# Controls the default_server_config/m.homeserver/server_name property in the config.json file.
matrix_element_call_config_default_server_config_m_homeserver_server_name: "{{ matrix_domain }}"

# Controls the livekit/livekit_service_url property in the config.json file.
matrix_element_call_config_livekit_livekit_service_url: "{{ matrix_livekit_jwt_service_public_url }}"

+ 3
- 3
roles/custom/matrix-element-call/templates/config.json.j2 Просмотреть файл

@@ -1,11 +1,11 @@
{
"default_server_config": {
"m.homeserver": {
"base_url": "{{ matrix_homeserver_url }}",
"server_name": "{{ matrix_domain }}"
"base_url": {{ matrix_element_call_config_default_server_config_m_homeserver_base_url | to_json }},
"server_name": {{ matrix_element_call_config_default_server_config_m_homeserver_server_name | to_json}}
}
},
"livekit": {
"livekit_service_url": "{{ matrix_livekit_jwt_service_public_url }}"
"livekit_service_url": {{ matrix_element_call_config_livekit_livekit_service_url | to_json }}
}
}

+ 1
- 1
roles/custom/matrix-element-call/templates/config.json.j2.license Просмотреть файл

@@ -1,5 +1,5 @@
SPDX-FileCopyrightText: 2022 MDAD project contributors
SPDX-FileCopyrightText: 2024 wjbeckett
SPDX-FileCopyrightText: 2024 Slavi Pantaleev
SPDX-FileCopyrightText: 2024 - 2025 Slavi Pantaleev

SPDX-License-Identifier: AGPL-3.0-or-later

Загрузка…
Отмена
Сохранить