From 9308c7125fc7ff0cae751a8d42ac99ee365bb1bd Mon Sep 17 00:00:00 2001 From: anoadragon453 Date: Tue, 31 May 2022 16:36:04 +0000 Subject: deploy: 2fc787c341ff540e5880932f116498ec0ed7a2c2 --- .../usage/configuration/config_documentation.html | 24 +++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) (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 8ce9b8d33b..cb15fe21ba 100644 --- a/develop/usage/configuration/config_documentation.html +++ b/develop/usage/configuration/config_documentation.html @@ -1348,7 +1348,7 @@ into fewer transactions. Defaults to 50.


Media Store

-

Config options relating to Synapse media store.

+

Config options related to Synapse's media store.


Config option: enable_media_repo

Enable the media store service in the Synapse master. Defaults to true. @@ -1433,6 +1433,28 @@ from a precalculated list. Defaults to false.

height: 600 method: scale +
+

Config option: media_retention

+

Controls whether local media and entries in the remote media cache +(media that is downloaded from other homeservers) should be removed +under certain conditions, typically for the purpose of saving space.

+

Purging media files will be the carried out by the media worker +(that is, the worker that has the enable_media_repo homeserver config +option set to 'true'). This may be the main process.

+

The media_retention.local_media_lifetime and +media_retention.remote_media_lifetime config options control whether +media will be purged if it has not been accessed in a given amount of +time. Note that media is 'accessed' when loaded in a room in a client, or +otherwise downloaded by a local or remote user. If the media has never +been accessed, the media's creation time is used instead. Both thumbnails +and the original media will be removed. If either of these options are unset, +then media of that type will not be purged.

+

Example configuration:

+
media_retention:
+    local_media_lifetime: 90d
+    remote_media_lifetime: 14d
+
+

Config option: url_preview_enabled

This setting determines whether the preview URL API is enabled. It is disabled by default. Set to true to enable. If enabled you must specify a -- cgit 1.5.1