From fcd8fcfd5f8eed4b99c7aecd01cdceba6d5e0ea9 Mon Sep 17 00:00:00 2001 From: Louis Abel Date: Mon, 20 Nov 2023 11:57:25 -0700 Subject: [PATCH] add cleanup --- templates/etc/gitea/conf/app.ini.j2 | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/templates/etc/gitea/conf/app.ini.j2 b/templates/etc/gitea/conf/app.ini.j2 index 4b5405c..70f7fb1 100644 --- a/templates/etc/gitea/conf/app.ini.j2 +++ b/templates/etc/gitea/conf/app.ini.j2 @@ -86,6 +86,12 @@ RUN_AT_START = true SCHEDULE = @midnight UPDATE_EXISTING = true +[cron.archive_cleanup] +ENABLED = true +RUN_AT_START = true +SCHEDULE = @midnight +OLDER_THAN = 168h + [indexer] REPO_INDEXER_ENABLED = true