modules.services.gitea: add git gc and lfs gc cron jobs

This commit is contained in:
2025-09-12 22:44:43 +08:00
parent f25ff89cf4
commit c515e4f3c6

View File

@@ -53,6 +53,8 @@ inputs:
security.LOGIN_REMEMBER_DAYS = 365;
"git.timeout" = builtins.listToAttrs (builtins.map (n: { name = n; value = 1800; })
[ "DEFAULT" "MIGRATE" "MIRROR" "CLONE" "PULL" "GC" ]);
"cron.git_gc_repos" = { ENABLED = true; SCHEDULE = "@every 30d"; TIMEOUT = "2h"; };
"cron.gc_lfs" = { ENABLED = true; SCHEDULE = "@every 30d"; NUMBER_TO_CHECK_PER_REPO = 0; };
};
};
anubis.instances.gitea.settings =