diff options
author | 2024-11-04 14:00:10 +0000 | |
---|---|---|
committer | 2024-11-04 15:00:10 +0100 | |
commit | f3b2eca8b86c797170d198d2aeb16a4cadd71e41 (patch) | |
tree | e387216c9d91e1fefb50a02cee84c9e166558336 /example | |
parent | [bugfix] determine mime-type to use during ffprobe evaluation stage, don't bo... (diff) | |
download | gotosocial-f3b2eca8b86c797170d198d2aeb16a4cadd71e41.tar.xz |
[feature] add support for hinting via api/v_/instance preferred image / video max sizes (#3505)
* add support for hinting via api/v_/instance endpoints a preferred image / video size limit
* fix tests expecting old default values
Diffstat (limited to 'example')
-rw-r--r-- | example/config.yaml | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/example/config.yaml b/example/config.yaml index d3de40791..644b51575 100644 --- a/example/config.yaml +++ b/example/config.yaml @@ -471,6 +471,24 @@ accounts-custom-css-length: 10000 # Default: 40MiB (41943040 bytes) media-local-max-size: 40MiB +# Size. Size in bytes of max image size referred to on /api/v_/instance endpoints, +# used by applications like Tusky to automatically scale locally uploaded media. +# +# Leaving this unset will default to media-local-max-size. +# +# Examples: [64, 500, 5MiB, 5MB, 50M] +# Default: unset +media-image-size-hint: 5MiB + +# Size. Size in bytes of max video size referred to on /api/v_/instance endpoints, +# used by applications like Tusky to automatically scale locally uploaded media. +# +# Leaving this unset will default to media-local-max-size. +# +# Examples: [64, 4096, 4MiB, 4MB, 40M] +# Default: unset +media-video-size-hint: 40MiB + # Size. Max size in bytes of media to download from other instances. # # Lowering this limit may cause your instance not to fetch post media. |