mirror of
https://github.com/spantaleev/matrix-docker-ansible-deploy.git
synced 2026-07-17 15:26:41 +00:00
Add dedicated CAPTCHA variables to matrix-authentication-service
Matrix Authentication Service supports CAPTCHA protection (ReCaptcha v2, Cloudflare Turnstile, hCaptcha) for certain operations like self-service password registration, but configuring it required going through matrix_authentication_service_configuration_extension_yaml. Expose it via dedicated variables (matrix_authentication_service_config_captcha_service, _site_key and _secret_key), validate the service value and key presence, and document the setup in the captcha documentation page, which so far only covered Synapse and Dendrite. Related to #5344 Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
@@ -260,6 +260,33 @@ matrix_authentication_service_config_account_registration_token_required: false
|
||||
########################################################################################
|
||||
|
||||
|
||||
########################################################################################
|
||||
# #
|
||||
# Captcha configuration #
|
||||
# #
|
||||
########################################################################################
|
||||
|
||||
# Controls the `captcha.service` configuration setting.
|
||||
#
|
||||
# Which service to use for CAPTCHA protection of certain operations (like self-service password registration).
|
||||
# Valid values: recaptcha_v2, cloudflare_turnstile, hcaptcha
|
||||
# When defined, `matrix_authentication_service_config_captcha_site_key` and `matrix_authentication_service_config_captcha_secret_key` must be defined as well.
|
||||
# Leave empty to disable CAPTCHA protection.
|
||||
matrix_authentication_service_config_captcha_service: ""
|
||||
|
||||
# Controls the `captcha.site_key` configuration setting.
|
||||
matrix_authentication_service_config_captcha_site_key: ""
|
||||
|
||||
# Controls the `captcha.secret_key` configuration setting.
|
||||
matrix_authentication_service_config_captcha_secret_key: ""
|
||||
|
||||
########################################################################################
|
||||
# #
|
||||
# /Captcha configuration #
|
||||
# #
|
||||
########################################################################################
|
||||
|
||||
|
||||
########################################################################################
|
||||
# #
|
||||
# Database configuration #
|
||||
|
||||
Reference in New Issue
Block a user