archive cleanup
This commit is contained in:
parent
b4728aba3f
commit
b5f32d9564
1 changed files with 13 additions and 11 deletions
|
|
@ -53,12 +53,13 @@ in
|
||||||
SENDMAIL_PATH = "${pkgs.msmtp}/bin/msmtp";
|
SENDMAIL_PATH = "${pkgs.msmtp}/bin/msmtp";
|
||||||
SENDMAIL_ARGS = "--";
|
SENDMAIL_ARGS = "--";
|
||||||
};
|
};
|
||||||
cors = {
|
|
||||||
ENABLED = false;
|
|
||||||
ALLOW_DOMAIN = "https://git.berlin.ccc.de";
|
|
||||||
ALLOW_CREDENTIALS = true;
|
|
||||||
};
|
|
||||||
metrics.ENABLED = true;
|
metrics.ENABLED = true;
|
||||||
|
"cron.archive_cleanup" = {
|
||||||
|
ENABLED = true;
|
||||||
|
RUN_AT_START = true;
|
||||||
|
SCHEDULE = "@every 4h";
|
||||||
|
OLDER_THAN = "4h";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
lfs.enable = true;
|
lfs.enable = true;
|
||||||
database = {
|
database = {
|
||||||
|
|
@ -98,12 +99,13 @@ in
|
||||||
deny all;
|
deny all;
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
"= /robots.txt" = {
|
"~ ^/[^/]+/[^/]+/archive/".extraConfig = ''
|
||||||
extraConfig = ''
|
limit_req zone=forgejo_archive burst=10 nodelay;
|
||||||
default_type text/plain;
|
'';
|
||||||
return 200 "User-agent: *\nDisallow: /*/*/archive/\n";
|
"= /robots.txt".extraConfig = ''
|
||||||
'';
|
default_type text/plain;
|
||||||
};
|
return 200 "User-agent: *\nDisallow: /*/*/archive/\n";
|
||||||
|
'';
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue