services: forgejo: enable old actions and repo archive cleanup tasks
Signed-off-by: Christoph Heiss <christoph@c8h4.io>
This commit is contained in:
parent
54b41e8933
commit
3f29ed7dfb
|
@ -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";
|
||||
|
|
Loading…
Reference in a new issue