From 6466fa841914c838137d42a48e930dfbb793a0ca Mon Sep 17 00:00:00 2001 From: Jeremy Stanley Date: Wed, 17 Apr 2024 14:15:49 +0000 Subject: [PATCH] Switch Gitea archive cleanup from weekly to daily Crawlers that ignore our robots.txt are triggering archive creation so rapidly our rootfs fills up between weekly purges, so doing it once a day should hopefully mitigate further problems. Change-Id: Ib4e56fbd666f7bf93c017739697d8443d527b8c7 --- playbooks/roles/gitea/templates/app.ini.j2 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/playbooks/roles/gitea/templates/app.ini.j2 b/playbooks/roles/gitea/templates/app.ini.j2 index 23cfb199b9..ab69ebad52 100644 --- a/playbooks/roles/gitea/templates/app.ini.j2 +++ b/playbooks/roles/gitea/templates/app.ini.j2 @@ -124,7 +124,7 @@ STORAGE_TYPE = local PATH = /data/git/lfs ; This is an undocumented gitea cron job that will delete all -; repo archives once a week Sunday at midnight. Repo archives are +; repo archives once daily at midnight. Repo archives are ; tarballs/zips/etc of repository state generate for things like ; tags. This helps ensure we don't run out of disk. [cron.delete_repo_archives] @@ -133,7 +133,7 @@ RUN_AT_START = false NOTICE_ON_SUCCESS = false ; Note we run this several hours after 0000 (midnight) to avoid conflict ; with default cron jobs run by gitea at that time. -SCHEDULE = 0 0 3 * * 0 +SCHEDULE = 0 0 3 * * * ; We don't need gitea phoning out to check versions. We stay on ; top of new releases using github release notifications over email.