Compare commits

...

3 commits

Author SHA1 Message Date
Christoph Heiss 4bd87669df
services: forgejo: enable twoqueue cache
All checks were successful
flake / build (push) Successful in 3m6s
Signed-off-by: Christoph Heiss <christoph@c8h4.io>
2024-08-24 17:12:15 +02:00
Christoph Heiss 3f29ed7dfb
services: forgejo: enable old actions and repo archive cleanup tasks
Signed-off-by: Christoph Heiss <christoph@c8h4.io>
2024-08-24 17:09:56 +02:00
Christoph Heiss 54b41e8933
services: forgejo: disable user account deletion
Signed-off-by: Christoph Heiss <christoph@c8h4.io>
2024-08-24 17:07:13 +02:00

View file

@ -33,6 +33,7 @@ in {
# https://forgejo.org/docs/latest/admin/config-cheat-sheet/
settings = {
DEFAULT.APP_NAME = fqdn;
admin.USER_DISABLED_FEATURES = "deletion";
api.ENABLE_SWAGGER = false;
cron = {
ENABLE = true;
@ -45,10 +46,24 @@ 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";
};
cache = {
ADAPTER = "twoqueue";
HOST = ''{"size":100, "recent_ratio":0.25, "ghost_ratio":0.5}'';
};
cors = {
ENABLED = true;
ALLOW_DOMAIN = fqdn;