1
0
This commit is contained in:
MadLittleMods
2025-07-14 16:39:31 +00:00
parent d642385b2d
commit 72c01e46d4
5 changed files with 60 additions and 2 deletions

View File

@@ -5906,12 +5906,30 @@ Setting this to a high value allows users to report content quickly, possibly in
<pre><code class="language-yaml">recaptcha_public_key: YOUR_PUBLIC_KEY
</code></pre>
<hr />
<h3 id="recaptcha_public_key_path"><a class="header" href="#recaptcha_public_key_path"><code>recaptcha_public_key_path</code></a></h3>
<p><em>(string|null)</em> An alternative to <a href="usage/configuration/config_documentation.html#recaptcha_public_key"><code>recaptcha_public_key</code></a>: allows the public key to be specified in an external file.</p>
<p>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.</p>
<p><em>Added in Synapse 1.134.0.</em></p>
<p>Defaults to <code>null</code>.</p>
<p>Example configuration:</p>
<pre><code class="language-yaml">recaptcha_public_key_path: /path/to/key/file
</code></pre>
<hr />
<h3 id="recaptcha_private_key"><a class="header" href="#recaptcha_private_key"><code>recaptcha_private_key</code></a></h3>
<p><em>(string|null)</em> This homeserver's ReCAPTCHA private key. Must be specified if <a href="usage/configuration/config_documentation.html#enable_registration_captcha"><code>enable_registration_captcha</code></a> is enabled. Defaults to <code>null</code>.</p>
<p>Example configuration:</p>
<pre><code class="language-yaml">recaptcha_private_key: YOUR_PRIVATE_KEY
</code></pre>
<hr />
<h3 id="recaptcha_private_key_path"><a class="header" href="#recaptcha_private_key_path"><code>recaptcha_private_key_path</code></a></h3>
<p><em>(string|null)</em> An alternative to <a href="usage/configuration/config_documentation.html#recaptcha_private_key"><code>recaptcha_private_key</code></a>: allows the private key to be specified in an external file.</p>
<p>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.</p>
<p><em>Added in Synapse 1.134.0.</em></p>
<p>Defaults to <code>null</code>.</p>
<p>Example configuration:</p>
<pre><code class="language-yaml">recaptcha_private_key_path: /path/to/key/file
</code></pre>
<hr />
<h3 id="enable_registration_captcha"><a class="header" href="#enable_registration_captcha"><code>enable_registration_captcha</code></a></h3>
<p><em>(boolean)</em> Set to <code>true</code> to require users to complete a CAPTCHA test when registering an account. Requires a valid ReCaptcha public/private key.</p>
<p>Note that <a href="usage/configuration/config_documentation.html#enable_registration"><code>enable_registration</code></a> must also be set to allow account registration.</p>

View File

@@ -2315,6 +2315,17 @@
"YOUR_PUBLIC_KEY"
]
},
"recaptcha_public_key_path": {
"type": [
"string",
"null"
],
"description": "An alternative to [`recaptcha_public_key`](#recaptcha_public_key): allows the public key to be specified in an external file.\n\nThe file should be a plain text file, containing only the public key. Synapse reads the public key from the given file once at startup.\n\n_Added in Synapse 1.134.0._",
"default": null,
"examples": [
"/path/to/key/file"
]
},
"recaptcha_private_key": {
"type": [
"string",
@@ -2326,6 +2337,17 @@
"YOUR_PRIVATE_KEY"
]
},
"recaptcha_private_key_path": {
"type": [
"string",
"null"
],
"description": "An alternative to [`recaptcha_private_key`](#recaptcha_private_key): allows the private key to be specified in an external file.\n\nThe file should be a plain text file, containing only the private key. Synapse reads the private key from the given file once at startup.\n\n_Added in Synapse 1.134.0._",
"default": null,
"examples": [
"/path/to/key/file"
]
},
"enable_registration_captcha": {
"type": "boolean",
"description": "Set to `true` to require users to complete a CAPTCHA test when registering an account. Requires a valid ReCaptcha public/private key.\n\nNote that [`enable_registration`](#enable_registration) must also be set to allow account registration.",

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -2190,12 +2190,30 @@ Setting this to a high value allows users to report content quickly, possibly in
<pre><code class="language-yaml">recaptcha_public_key: YOUR_PUBLIC_KEY
</code></pre>
<hr />
<h3 id="recaptcha_public_key_path"><a class="header" href="#recaptcha_public_key_path"><code>recaptcha_public_key_path</code></a></h3>
<p><em>(string|null)</em> An alternative to <a href="#recaptcha_public_key"><code>recaptcha_public_key</code></a>: allows the public key to be specified in an external file.</p>
<p>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.</p>
<p><em>Added in Synapse 1.134.0.</em></p>
<p>Defaults to <code>null</code>.</p>
<p>Example configuration:</p>
<pre><code class="language-yaml">recaptcha_public_key_path: /path/to/key/file
</code></pre>
<hr />
<h3 id="recaptcha_private_key"><a class="header" href="#recaptcha_private_key"><code>recaptcha_private_key</code></a></h3>
<p><em>(string|null)</em> This homeserver's ReCAPTCHA private key. Must be specified if <a href="#enable_registration_captcha"><code>enable_registration_captcha</code></a> is enabled. Defaults to <code>null</code>.</p>
<p>Example configuration:</p>
<pre><code class="language-yaml">recaptcha_private_key: YOUR_PRIVATE_KEY
</code></pre>
<hr />
<h3 id="recaptcha_private_key_path"><a class="header" href="#recaptcha_private_key_path"><code>recaptcha_private_key_path</code></a></h3>
<p><em>(string|null)</em> An alternative to <a href="#recaptcha_private_key"><code>recaptcha_private_key</code></a>: allows the private key to be specified in an external file.</p>
<p>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.</p>
<p><em>Added in Synapse 1.134.0.</em></p>
<p>Defaults to <code>null</code>.</p>
<p>Example configuration:</p>
<pre><code class="language-yaml">recaptcha_private_key_path: /path/to/key/file
</code></pre>
<hr />
<h3 id="enable_registration_captcha"><a class="header" href="#enable_registration_captcha"><code>enable_registration_captcha</code></a></h3>
<p><em>(boolean)</em> Set to <code>true</code> to require users to complete a CAPTCHA test when registering an account. Requires a valid ReCaptcha public/private key.</p>
<p>Note that <a href="#enable_registration"><code>enable_registration</code></a> must also be set to allow account registration.</p>