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

Derive matrix_coturn_turn_static_auth_secret from matrix_homeserver_generic_secret_key

Doing this further simplifies examples/vars.yml.
pull/1520/head
Slavi Pantaleev 4 лет назад
Родитель
Сommit
bbbfc0708f
2 измененных файлов: 2 добавлений и 4 удалений
  1. +0
    -4
      examples/vars.yml
  2. +2
    -0
      group_vars/matrix_servers

+ 0
- 4
examples/vars.yml Просмотреть файл

@@ -28,10 +28,6 @@ matrix_homeserver_generic_secret_key: ''
# Example value: someone@example.com
matrix_ssl_lets_encrypt_support_email: ''

# A shared secret (between Coturn and Synapse) used for authentication.
# You can put any string here, but generating a strong one is preferred (e.g. `pwgen -s 64 1`).
matrix_coturn_turn_static_auth_secret: ''

# A Postgres password to use for the superuser Postgres user (called `matrix` by default).
#
# The playbook creates additional Postgres users and databases (one for each enabled service)


+ 2
- 0
group_vars/matrix_servers Просмотреть файл

@@ -1087,6 +1087,8 @@ matrix_coturn_container_image_self_build: "{{ matrix_architecture != 'amd64'}}"

matrix_coturn_turn_external_ip_address: "{{ ansible_host }}"

matrix_coturn_turn_static_auth_secret: "{{ '%s' | format(matrix_homeserver_generic_secret_key) | password_hash('sha512', 'coturn.sas') | to_uuid }}"

matrix_coturn_tls_enabled: "{{ matrix_ssl_retrieval_method != 'none' }}"
matrix_coturn_tls_cert_path: "{{ matrix_ssl_config_dir_path }}/live/{{ matrix_server_fqn_matrix }}/fullchain.pem"
matrix_coturn_tls_key_path: "{{ matrix_ssl_config_dir_path }}/live/{{ matrix_server_fqn_matrix }}/privkey.pem"


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