diff options
author | clokep <clokep@users.noreply.github.com> | 2023-11-15 14:20:26 +0000 |
---|---|---|
committer | clokep <clokep@users.noreply.github.com> | 2023-11-15 14:20:26 +0000 |
commit | 63c7bec03de54c6e9b8f0c248a984db09d5a2493 (patch) | |
tree | ad21721abb83b8035fa6ca2876cb57d4f8e886db /develop/print.html | |
parent | deploy: 4dd18bdc2efcb68947b96e1fddae8a62d37a6e68 (diff) | |
download | synapse-63c7bec03de54c6e9b8f0c248a984db09d5a2493.tar.xz |
deploy: 999bd77d3abb7b0a4430f31f5912956c3bc100ee
Diffstat (limited to 'develop/print.html')
-rw-r--r-- | develop/print.html | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/develop/print.html b/develop/print.html index 804d9a08b2..fba8458d7c 100644 --- a/develop/print.html +++ b/develop/print.html @@ -5211,6 +5211,16 @@ sending the invite. Defaults to <code>per_second: 0.2</code>, <code>burst_count: burst_count: 10 </code></pre> <hr /> +<h3 id="rc_media_create"><a class="header" href="#rc_media_create"><code>rc_media_create</code></a></h3> +<p>This option ratelimits creation of MXC URIs via the <code>/_matrix/media/v1/create</code> +endpoint based on the account that's creating the media. Defaults to +<code>per_second: 10</code>, <code>burst_count: 50</code>.</p> +<p>Example configuration:</p> +<pre><code class="language-yaml">rc_media_create: + per_second: 10 + burst_count: 50 +</code></pre> +<hr /> <h3 id="rc_federation"><a class="header" href="#rc_federation"><code>rc_federation</code></a></h3> <p>Defines limits on federation requests.</p> <p>The <code>rc_federation</code> configuration has the following sub-options:</p> @@ -5259,6 +5269,21 @@ Set to false if you are using a separate media store worker.</p> <pre><code class="language-yaml">media_store_path: "DATADIR/media_store" </code></pre> <hr /> +<h3 id="max_pending_media_uploads"><a class="header" href="#max_pending_media_uploads"><code>max_pending_media_uploads</code></a></h3> +<p>How many <em>pending media uploads</em> can a given user have? A pending media upload +is a created MXC URI that (a) is not expired (the <code>unused_expires_at</code> timestamp +has not passed) and (b) the media has not yet been uploaded for. Defaults to 5.</p> +<p>Example configuration:</p> +<pre><code class="language-yaml">max_pending_media_uploads: 5 +</code></pre> +<hr /> +<h3 id="unused_expiration_time"><a class="header" href="#unused_expiration_time"><code>unused_expiration_time</code></a></h3> +<p>How long to wait in milliseconds before expiring created media IDs. Defaults to +"24h"</p> +<p>Example configuration:</p> +<pre><code class="language-yaml">unused_expiration_time: "1h" +</code></pre> +<hr /> <h3 id="media_storage_providers"><a class="header" href="#media_storage_providers"><code>media_storage_providers</code></a></h3> <p>Media storage providers allow media to be stored in different locations. Defaults to none. Associated sub-options are:</p> |