services: forgejo: enable old actions and repo archive cleanup tasks

Signed-off-by: Christoph Heiss <christoph@c8h4.io>
This commit is contained in:
Christoph Heiss 2024-08-24 17:09:56 +02:00
parent 54b41e8933
commit 3f29ed7dfb
Signed by: c8h4
GPG key ID: 6817E9C75C0785D7

View file

@ -46,6 +46,16 @@ in {
SCHEDULE = "@every 48h";
TIMEOUT = "1h";
};
"cron.delete_old_actions" = {
ENABLED = true;
RUN_AT_START = true;
SCHEDULE = "@every 168h"; # 1 week
OLDER_THAN = "4380h"; # half a year
};
"cron.archive_cleanup" = {
SCHEDULE = "@every 2h";
OLDER_THAN = "6h";
};
git = {
GC_ARGS = "--prune=1.week.ago";
HOME_PATH = "${config.services.forgejo.stateDir}/data/home";