You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Another config option on my quest to a `*_path` variant for every
secret. Adds the config options `recaptcha_private_key_path` and
`recaptcha_public_key_path`. Tests and docs are included.
A public key is of course no secret, but it is closely related to the
private key, so it’s still useful to have a `*_path` variant for it.
Copy file name to clipboardExpand all lines: docs/usage/configuration/config_documentation.md
+30Lines changed: 30 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2357,6 +2357,21 @@ Example configuration:
2357
2357
recaptcha_public_key: YOUR_PUBLIC_KEY
2358
2358
```
2359
2359
---
2360
+
### `recaptcha_public_key_path`
2361
+
2362
+
*(string|null)* An alternative to [`recaptcha_public_key`](#recaptcha_public_key): allows the public key to be specified in an external file.
2363
+
2364
+
The file should be a plain text file, containing only the public key. Synapse reads the public key from the given file once at startup.
2365
+
2366
+
_Added in Synapse 1.134.0._
2367
+
2368
+
Defaults to `null`.
2369
+
2370
+
Example configuration:
2371
+
```yaml
2372
+
recaptcha_public_key_path: /path/to/key/file
2373
+
```
2374
+
---
2360
2375
### `recaptcha_private_key`
2361
2376
2362
2377
*(string|null)* This homeserver's ReCAPTCHA private key. Must be specified if [`enable_registration_captcha`](#enable_registration_captcha) is enabled. Defaults to `null`.
@@ -2366,6 +2381,21 @@ Example configuration:
2366
2381
recaptcha_private_key: YOUR_PRIVATE_KEY
2367
2382
```
2368
2383
---
2384
+
### `recaptcha_private_key_path`
2385
+
2386
+
*(string|null)* An alternative to [`recaptcha_private_key`](#recaptcha_private_key): allows the private key to be specified in an external file.
2387
+
2388
+
The file should be a plain text file, containing only the private key. Synapse reads the private key from the given file once at startup.
2389
+
2390
+
_Added in Synapse 1.134.0._
2391
+
2392
+
Defaults to `null`.
2393
+
2394
+
Example configuration:
2395
+
```yaml
2396
+
recaptcha_private_key_path: /path/to/key/file
2397
+
```
2398
+
---
2369
2399
### `enable_registration_captcha`
2370
2400
2371
2401
*(boolean)* Set to `true` to require users to complete a CAPTCHA test when registering an account. Requires a valid ReCaptcha public/private key.
0 commit comments