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

Use boolean values for `matrix_user_verification_service_uvs_disable_ip_blacklist`

pull/4194/head
Slavi Pantaleev 11 месяцев назад
Родитель
Сommit
bdd184242c
2 измененных файлов: 4 добавлений и 4 удалений
  1. +1
    -1
      group_vars/matrix_servers
  2. +3
    -3
      roles/custom/matrix-user-verification-service/templates/.env.j2

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

@@ -6089,7 +6089,7 @@ matrix_user_verification_service_container_url: "http://{{ matrix_user_verifica
matrix_user_verification_service_uvs_homeserver_url: "{{ matrix_addons_homeserver_client_api_url }}"

# We connect via the container network (private IPs), so we need to disable IP checks
matrix_user_verification_service_uvs_disable_ip_blacklist: "{{'true' if matrix_synapse_enabled else 'false'}}"
matrix_user_verification_service_uvs_disable_ip_blacklist: "{{ matrix_synapse_enabled }}"

matrix_user_verification_service_uvs_auth_token: "{{ '%s' | format(matrix_homeserver_generic_secret_key) | password_hash('sha512', 'uvs.auth.token', rounds=655555) | to_uuid }}"



+ 3
- 3
roles/custom/matrix-user-verification-service/templates/.env.j2 Просмотреть файл

@@ -6,11 +6,11 @@ SPDX-License-Identifier: AGPL-3.0-or-later

UVS_ACCESS_TOKEN={{ matrix_user_verification_service_uvs_access_token }}
UVS_HOMESERVER_URL={{ matrix_user_verification_service_uvs_homeserver_url }}
UVS_DISABLE_IP_BLACKLIST={{ matrix_user_verification_service_uvs_disable_ip_blacklist }}
UVS_DISABLE_IP_BLACKLIST={{ matrix_user_verification_service_uvs_disable_ip_blacklist | to_json }}
UVS_LOG_LEVEL={{ matrix_user_verification_service_uvs_log_level }}
{% if matrix_user_verification_service_uvs_require_auth | bool %}
UVS_AUTH_TOKEN={{ matrix_user_verification_service_uvs_auth_token }}
UVS_AUTH_TOKEN={{ matrix_user_verification_service_uvs_auth_token }}
{% endif %}
{% if matrix_user_verification_service_uvs_pin_openid_verify_server_name | bool %}
UVS_OPENID_VERIFY_SERVER_NAME={{ matrix_user_verification_service_uvs_openid_verify_server_name }}
UVS_OPENID_VERIFY_SERVER_NAME={{ matrix_user_verification_service_uvs_openid_verify_server_name }}
{% endif %}

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