mirror of
https://github.com/element-hq/synapse.git
synced 2024-11-28 15:08:49 +03:00
deploy: 999bd77d3a
This commit is contained in:
parent
2efb62ec85
commit
63c7bec03d
4 changed files with 52 additions and 2 deletions
|
@ -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>
|
||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -1665,6 +1665,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>
|
||||
|
@ -1713,6 +1723,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>
|
||||
|
|
Loading…
Reference in a new issue