diff options
author | 2024-11-04 14:00:10 +0000 | |
---|---|---|
committer | 2024-11-04 15:00:10 +0100 | |
commit | f3b2eca8b86c797170d198d2aeb16a4cadd71e41 (patch) | |
tree | e387216c9d91e1fefb50a02cee84c9e166558336 /test/envparsing.sh | |
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 'test/envparsing.sh')
-rwxr-xr-x | test/envparsing.sh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/envparsing.sh b/test/envparsing.sh index ac6c2edc0..503bdd817 100755 --- a/test/envparsing.sh +++ b/test/envparsing.sh @@ -129,9 +129,11 @@ EXPECT=$(cat << "EOF" "media-emoji-local-max-size": 420, "media-emoji-remote-max-size": 420, "media-ffmpeg-pool-size": 8, + "media-image-size-hint": 5242880, "media-local-max-size": 420, "media-remote-cache-days": 30, "media-remote-max-size": 420, + "media-video-size-hint": 41943040, "metrics-auth-enabled": false, "metrics-auth-password": "", "metrics-auth-username": "", @@ -244,12 +246,14 @@ GTS_ACCOUNTS_REGISTRATION_OPEN=true \ GTS_ACCOUNTS_REASON_REQUIRED=false \ GTS_MEDIA_DESCRIPTION_MIN_CHARS=69 \ GTS_MEDIA_DESCRIPTION_MAX_CHARS=5000 \ +GTS_MEDIA_IMAGE_SIZE_HINT='5MiB' \ GTS_MEDIA_LOCAL_MAX_SIZE=420 \ GTS_MEDIA_REMOTE_MAX_SIZE=420 \ GTS_MEDIA_REMOTE_CACHE_DAYS=30 \ GTS_MEDIA_EMOJI_LOCAL_MAX_SIZE=420 \ GTS_MEDIA_EMOJI_REMOTE_MAX_SIZE=420 \ GTS_MEDIA_FFMPEG_POOL_SIZE=8 \ +GTS_MEDIA_VIDEO_SIZE_HINT='40MiB' \ GTS_METRICS_AUTH_ENABLED=false \ GTS_METRICS_ENABLED=false \ GTS_STORAGE_BACKEND='local' \ |