Explorar el Código

renamed captcha vars to new naming scheme

pull/2290/head
array-in-a-matrix hace 3 años
committed by Slavi Pantaleev
padre
commit
7bb47e1787
Se han modificado 3 ficheros con 24 adiciones y 24 borrados
  1. +11
    -11
      docs/configuring-captcha.md
  2. +7
    -7
      roles/custom/matrix-dendrite/defaults/main.yml
  3. +6
    -6
      roles/custom/matrix-dendrite/templates/dendrite/dendrite.yaml.j2

+ 11
- 11
docs/configuring-captcha.md Ver fichero

@@ -25,9 +25,9 @@ matrix_synapse_recaptcha_public_key: 'YOUR_SITE_KEY'
matrix_synapse_recaptcha_private_key: 'YOUR_SECRET_KEY'

# for Dendrite
matrix_dendrite_enable_registration_captcha: true
matrix_dendrite_recaptcha_public_key: 'YOUR_SITE_KEY'
matrix_dendrite_recaptcha_private_key: 'YOUR_SECRET_KEY'
matrix_dendrite_client_api_enable_registration_captcha: true
matrix_dendrite_client_api_recaptcha_public_key: 'YOUR_SITE_KEY'
matrix_dendrite_client_api_recaptcha_private_key: 'YOUR_SECRET_KEY'
```

## hCaptcha
@@ -41,12 +41,12 @@ Requires a site/secret key pair from:
### Setting hCaptcha keys

```yaml
matrix_dendrite_enable_registration_captcha: true
matrix_dendrite_recaptcha_public_key: 'YOUR_SITE_KEY'
matrix_dendrite_recaptcha_private_key: 'YOUR_SECRET_KEY'
matrix_dendrite_recaptcha_siteverify_api: 'https://hcaptcha.com/siteverify'
matrix_dendrite_recaptcha_api_js_url: 'https://js.hcaptcha.com/1/api.js'
matrix_dendrite_recaptcha_form_field: 'h-captcha-response'
matrix_dendrite_recaptcha_sitekey_class: 'h-captcha'
matrix_dendrite_client_api_enable_registration_captcha: true
matrix_dendrite_client_api_recaptcha_public_key: 'YOUR_SITE_KEY'
matrix_dendrite_client_api_recaptcha_private_key: 'YOUR_SECRET_KEY'
matrix_dendrite_client_api_recaptcha_siteverify_api: 'https://hcaptcha.com/siteverify'
matrix_dendrite_client_api_recaptcha_api_js_url: 'https://js.hcaptcha.com/1/api.js'
matrix_dendrite_client_api_recaptcha_form_field: 'h-captcha-response'
matrix_dendrite_client_api_recaptcha_sitekey_class: 'h-captcha'
```

+ 7
- 7
roles/custom/matrix-dendrite/defaults/main.yml Ver fichero

@@ -97,13 +97,13 @@ matrix_dendrite_rate_limiting_cooloff_ms: 500
matrix_dendrite_registration_disabled: true

# reCAPTCHA API for validating registration attempts
matrix_dendrite_enable_registration_captcha: false
matrix_dendrite_recaptcha_public_key: ""
matrix_dendrite_recaptcha_private_key: ""
matrix_dendrite_recaptcha_siteverify_api: ""
matrix_dendrite_recaptcha_api_js_url: ""
matrix_dendrite_recaptcha_form_field: ""
matrix_dendrite_recaptcha_sitekey_class: ""
matrix_dendrite_client_api_enable_registration_captcha: false
matrix_dendrite_client_api_recaptcha_public_key: ""
matrix_dendrite_client_api_recaptcha_private_key: ""
matrix_dendrite_client_api_recaptcha_siteverify_api: ""
matrix_dendrite_client_api_recaptcha_api_js_url: ""
matrix_dendrite_client_api_recaptcha_form_field: ""
matrix_dendrite_client_api_recaptcha_sitekey_class: ""

# A list of additional "volumes" to mount in the container.
# This list gets populated dynamically based on Dendrite extensions that have been enabled.


+ 6
- 6
roles/custom/matrix-dendrite/templates/dendrite/dendrite.yaml.j2 Ver fichero

@@ -189,13 +189,13 @@ client_api:
enable_registration_captcha: {{ matrix_dendrite_enable_registration_captcha|to_json }}

# Settings for ReCAPTCHA.
recaptcha_public_key: {{ matrix_dendrite_recaptcha_public_key|to_json }}
recaptcha_private_key: {{ matrix_dendrite_recaptcha_private_key|to_json }}
recaptcha_public_key: {{ matrix_dendrite_client_api_recaptcha_public_key|to_json }}
recaptcha_private_key: {{ matrix_dendrite_client_api_recaptcha_private_key|to_json }}
recaptcha_bypass_secret: ""
recaptcha_siteverify_api: {{ matrix_dendrite_recaptcha_siteverify_api|to_json }}
recaptcha_api_js_url: {{ matrix_dendrite_recaptcha_api_js_url | to_json }}
recaptcha_form_field: {{ matrix_dendrite_recaptcha_form_field | to_json }}
recaptcha_sitekey_class: {{ matrix_dendrite_recaptcha_sitekey_class | to_json }}
recaptcha_siteverify_api: {{ matrix_dendrite_client_api_recaptcha_siteverify_api|to_json }}
recaptcha_api_js_url: {{ matrix_dendrite_client_api_recaptcha_api_js_url | to_json }}
recaptcha_form_field: {{ matrix_dendrite_client_api_recaptcha_form_field | to_json }}
recaptcha_sitekey_class: {{ matrix_dendrite_client_api_recaptcha_sitekey_class | to_json }}

# TURN server information that this homeserver should send to clients.
turn:


Cargando…
Cancelar
Guardar