diff options
author | 2024-03-01 15:47:03 +0100 | |
---|---|---|
committer | 2024-03-01 14:47:03 +0000 | |
commit | 40ba93654e4e53bb0e72e6f378dc8ba6578760e5 (patch) | |
tree | 9a197fe468ff3691fa39243aabff971cabb932be /testrig | |
parent | [bugfix] unwrap boosts when checking in-reply-to status (#2702) (diff) | |
download | gotosocial-40ba93654e4e53bb0e72e6f378dc8ba6578760e5.tar.xz |
[docs] Use human sizes for size limitations (#2706)
This switches the documentation to use human sizes, so 50MiB instead of
an integer number of bytes. This makes it much easier to understand what
values are set, and less likely to accidentally set the wrong value.
Diffstat (limited to 'testrig')
-rw-r--r-- | testrig/config.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/testrig/config.go b/testrig/config.go index 5dbacc155..c3a62aed4 100644 --- a/testrig/config.go +++ b/testrig/config.go @@ -85,13 +85,13 @@ var testDefaults = config.Configuration{ AccountsAllowCustomCSS: true, AccountsCustomCSSLength: 10000, - MediaImageMaxSize: 10485760, // 10mb - MediaVideoMaxSize: 41943040, // 40mb + MediaImageMaxSize: 10485760, // 10MiB + MediaVideoMaxSize: 41943040, // 40MiB MediaDescriptionMinChars: 0, MediaDescriptionMaxChars: 500, MediaRemoteCacheDays: 7, - MediaEmojiLocalMaxSize: 51200, // 50kb - MediaEmojiRemoteMaxSize: 102400, // 100kb + MediaEmojiLocalMaxSize: 51200, // 50KiB + MediaEmojiRemoteMaxSize: 102400, // 100KiB MediaCleanupFrom: "00:00", // midnight. MediaCleanupEvery: 24 * time.Hour, // 1/day. |