summaryrefslogtreecommitdiff
path: root/testrig/config.go
diff options
context:
space:
mode:
authorLibravatar Daenney <daenney@users.noreply.github.com>2023-07-21 16:22:59 +0200
committerLibravatar GitHub <noreply@github.com>2023-07-21 16:22:59 +0200
commitda8282081c8d5f689281f223e824224ccf606511 (patch)
tree7e9abf74330121484c46bfbc08b99d8cb34b2cc9 /testrig/config.go
parent[chore]: Bump github.com/jackc/pgx/v5 from 5.4.1 to 5.4.2 (#1991) (diff)
downloadgotosocial-da8282081c8d5f689281f223e824224ccf606511.tar.xz
[feature] Lower remote media cache config duration (#2007)
The old default of 30d can lead to a lot of media getting cached and significant disk usage, even on small or single person instances. A lot of deployments decrease this value, to 15 or even less. This is less of an issue when using object storage, but for local storage which is the more popular deployment option running out of disk space is unpleasant. With GoToSocial's aim to fit in small places, this changes the default to a much more conservative 7 days. In all likelihood people aren't scrolling that far back in their timeline so this change shouldn't result in any issue. Existing deployments will only be affected by this change if the admin hasn't already configured this value, or didn't bootstrap from the example configuration.
Diffstat (limited to 'testrig/config.go')
-rw-r--r--testrig/config.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/testrig/config.go b/testrig/config.go
index 126c5b3d4..c5cbb2c80 100644
--- a/testrig/config.go
+++ b/testrig/config.go
@@ -77,7 +77,7 @@ var testDefaults = config.Configuration{
MediaVideoMaxSize: 41943040, // 40mb
MediaDescriptionMinChars: 0,
MediaDescriptionMaxChars: 500,
- MediaRemoteCacheDays: 30,
+ MediaRemoteCacheDays: 7,
MediaEmojiLocalMaxSize: 51200, // 50kb
MediaEmojiRemoteMaxSize: 102400, // 100kb