Liferay OSGi Config Generator
Generate Liferay OSGi .config files for osgi/configs. Pick a component for a typed property form, or use custom mode for any PID. Correct Felix format.
1. Choose a component
2. Configure properties
Number of allowed attempts before a CAPTCHA is required. 0 always shows it; a negative value disables it.
IntegerGoogle reCAPTCHA site key (public).
StringGoogle reCAPTCHA secret key (private).
StringURL of the reCAPTCHA client script.
StringServer-side reCAPTCHA verification endpoint.
StringAdd another property
3. Generated com.liferay.captcha.configuration.CaptchaConfiguration.config
Drop this file into [Liferay Home]/osgi/configs/.
Prefer the plain .cfg format? (com.liferay.captcha.configuration.CaptchaConfiguration.cfg)
The .config format is preferred — it carries types and supports multi-valued properties. Use .cfg only for simple scalar values.
Liferay CAPTCHA / reCAPTCHA OSGi Configuration
Configures the CAPTCHA engine and Google reCAPTCHA keys used on account and password forms.
PID: com.liferay.captcha.configuration.CaptchaConfiguration
Properties
| Property | Type | Default | Description |
|---|---|---|---|
| maxChallenges | Integer | 1 | Number of allowed attempts before a CAPTCHA is required. 0 always shows it; a negative value disables it. |
| reCaptchaPublicKey | String | — | Google reCAPTCHA site key (public). |
| reCaptchaPrivateKey | String | — | Google reCAPTCHA secret key (private). |
| reCaptchaScriptURL | String | https://www.google.com/recaptcha/api.js | URL of the reCAPTCHA client script. |
| reCaptchaVerifyURL | String | https://www.google.com/recaptcha/api/siteverify | Server-side reCAPTCHA verification endpoint. |
These are the common, verified properties. Add any others for this PID with the custom-property row in the form above, then drop the file into [Liferay Home]/osgi/configs.