From f66091d7eb4cc8ccbeea7656f564e56617f438d6 Mon Sep 17 00:00:00 2001 From: reivilibre Date: Wed, 5 Jun 2024 12:45:06 +0000 Subject: deploy: fcbc79bb87d08147e86dafa0fee5a9aec4d3fc23 --- develop/usage/configuration/config_documentation.html | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'develop/usage/configuration/config_documentation.html') diff --git a/develop/usage/configuration/config_documentation.html b/develop/usage/configuration/config_documentation.html index 7a7dc7f0a8..fea2a96526 100644 --- a/develop/usage/configuration/config_documentation.html +++ b/develop/usage/configuration/config_documentation.html @@ -1823,6 +1823,18 @@ See here for more on using a reverse prox
max_image_pixels: 35M
 

+

remote_media_download_burst_count

+

Remote media downloads are ratelimited using a leaky bucket algorithm, where a given "bucket" is keyed to the IP address of the requester when requesting remote media downloads. This configuration option sets the size of the bucket against which the size in bytes of downloads are penalized - if the bucket is full, ie a given number of bytes have already been downloaded, further downloads will be denied until the bucket drains. Defaults to 500MiB. See also remote_media_download_per_second which determines the rate at which the "bucket" is emptied and thus has available space to authorize new requests.

+

Example configuration:

+
remote_media_download_burst_count: 200M
+
+
+

remote_media_download_per_second

+

Works in conjunction with remote_media_download_burst_count to ratelimit remote media downloads - this configuration option determines the rate at which the "bucket" (see above) leaks in bytes per second. As requests are made to download remote media, the size of those requests in bytes is added to the bucket, and once the bucket has reached it's capacity, no more requests will be allowed until a number of bytes has "drained" from the bucket. This setting determines the rate at which bytes drain from the bucket, with the practical effect that the larger the number, the faster the bucket leaks, allowing for more bytes downloaded over a shorter period of time. Defaults to 87KiB per second. See also remote_media_download_burst_count.

+

Example configuration:

+
remote_media_download_per_second: 40K
+
+

prevent_media_downloads_from

A list of domains to never download media from. Media from these domains that is already downloaded will not be deleted, but will be -- cgit 1.5.1