diff --git a/playbooks/roles/gitea/templates/app.ini.j2 b/playbooks/roles/gitea/templates/app.ini.j2 index 8010afdf39..8e6d660c63 100644 --- a/playbooks/roles/gitea/templates/app.ini.j2 +++ b/playbooks/roles/gitea/templates/app.ini.j2 @@ -122,3 +122,15 @@ ENABLED = false [lfs] 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 +; 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] +ENABLED = true +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