Compare commits
3 commits
35dcf3d3ba
...
4bd87669df
Author | SHA1 | Date | |
---|---|---|---|
Christoph Heiss | 4bd87669df | ||
Christoph Heiss | 3f29ed7dfb | ||
Christoph Heiss | 54b41e8933 |
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue