diff options
author | Ivan Tashkinov <ivantashkinov@gmail.com> | 2020-09-17 17:13:40 +0300 |
---|---|---|
committer | Ivan Tashkinov <ivantashkinov@gmail.com> | 2020-09-17 17:13:40 +0300 |
commit | 7cdbd91d83c02a79c22783ca489ef82e82b31a51 (patch) | |
tree | 57b14b18297b7ee2e5fd1fbbb498c639e4afe092 /docs | |
parent | a781f41f969bd1a929005b2b5006a40d42855ae8 (diff) | |
download | pleroma-7cdbd91d83c02a79c22783ca489ef82e82b31a51.tar.gz pleroma-7cdbd91d83c02a79c22783ca489ef82e82b31a51.zip |
[#2497] Configurability of :min_content_length (preview proxy). Refactoring, documentation, tests.
Diffstat (limited to 'docs')
-rw-r--r-- | docs/configuration/cheatsheet.md | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/docs/configuration/cheatsheet.md b/docs/configuration/cheatsheet.md index 054b8fe43..d7c342383 100644 --- a/docs/configuration/cheatsheet.md +++ b/docs/configuration/cheatsheet.md @@ -314,6 +314,14 @@ This section describe PWA manifest instance-specific values. Currently this opti * `enabled`: Enables purge cache * `provider`: Which one of the [purge cache strategy](#purge-cache-strategy) to use. +## :media_preview_proxy + +* `enabled`: Enables proxying of remote media preview to the instance’s proxy. Requires enabled media proxy (`media_proxy/enabled`). +* `thumbnail_max_width`: Max width of preview thumbnail for images (video preview always has original dimensions). +* `thumbnail_max_height`: Max height of preview thumbnail for images (video preview always has original dimensions). +* `image_quality`: Quality of the output. Ranges from 0 (min quality) to 100 (max quality). +* `min_content_length`: Min content length to perform preview, in bytes. If greater than 0, media smaller in size will be served as is, without thumbnailing. + ### Purge cache strategy #### Pleroma.Web.MediaProxy.Invalidation.Script |