Przeglądaj źródła

Use boolean values for `matrix_user_verification_service_uvs_disable_ip_blacklist`

pull/4194/head
Slavi Pantaleev 11 miesięcy temu
rodzic
commit
bdd184242c
2 zmienionych plików z 4 dodań i 4 usunięć
  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 Wyświetl plik

@@ -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 }}" 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 # 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 }}" 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 Wyświetl plik

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


UVS_ACCESS_TOKEN={{ matrix_user_verification_service_uvs_access_token }} UVS_ACCESS_TOKEN={{ matrix_user_verification_service_uvs_access_token }}
UVS_HOMESERVER_URL={{ matrix_user_verification_service_uvs_homeserver_url }} 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 }} UVS_LOG_LEVEL={{ matrix_user_verification_service_uvs_log_level }}
{% if matrix_user_verification_service_uvs_require_auth | bool %} {% 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 %} {% endif %}
{% if matrix_user_verification_service_uvs_pin_openid_verify_server_name | bool %} {% 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 %} {% endif %}

Ładowanie…
Anuluj
Zapisz