summaryrefslogtreecommitdiff
path: root/testrig/config.go
diff options
context:
space:
mode:
authorLibravatar tobi <31960611+tsmethurst@users.noreply.github.com>2023-10-30 18:35:11 +0100
committerLibravatar GitHub <noreply@github.com>2023-10-30 17:35:11 +0000
commit4dc0547dc0e80a4289f46cd8ee5b3aaf855f1f1e (patch)
tree465b66e88a1defdae6c29f86e9e1a3269dc474ff /testrig/config.go
parent[chore]: Bump github.com/google/uuid from 1.3.1 to 1.4.0 (#2315) (diff)
downloadgotosocial-4dc0547dc0e80a4289f46cd8ee5b3aaf855f1f1e.tar.xz
[feature] Customizable media cleaner schedule (#2304)
Diffstat (limited to 'testrig/config.go')
-rw-r--r--testrig/config.go6
1 files changed, 4 insertions, 2 deletions
diff --git a/testrig/config.go b/testrig/config.go
index 154e61f47..0a322484c 100644
--- a/testrig/config.go
+++ b/testrig/config.go
@@ -80,8 +80,10 @@ var testDefaults = config.Configuration{
MediaDescriptionMinChars: 0,
MediaDescriptionMaxChars: 500,
MediaRemoteCacheDays: 7,
- MediaEmojiLocalMaxSize: 51200, // 50kb
- MediaEmojiRemoteMaxSize: 102400, // 100kb
+ MediaEmojiLocalMaxSize: 51200, // 50kb
+ MediaEmojiRemoteMaxSize: 102400, // 100kb
+ MediaCleanupFrom: "00:00", // midnight.
+ MediaCleanupEvery: 24 * time.Hour, // 1/day.
// the testrig only uses in-memory storage, so we can
// safely set this value to 'test' to avoid running storage