gitea: Add tmpfiles configuration to clean up forgejo dumps
This commit is contained in:
parent
eb91f7bc03
commit
0cfbc4708d
1 changed files with 14 additions and 0 deletions
|
@ -89,6 +89,20 @@ in
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# Clean up dump files older than 60 days
|
||||||
|
systemd.tmpfiles.settings = {
|
||||||
|
forgejo = {
|
||||||
|
"/var/lib/forgejo/dump" = {
|
||||||
|
d = {
|
||||||
|
user = "git";
|
||||||
|
group = "forgejo";
|
||||||
|
mode = "0750";
|
||||||
|
age = "60d";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
networking.firewall.allowedTCPPorts = [ 3000 ];
|
networking.firewall.allowedTCPPorts = [ 3000 ];
|
||||||
|
|
||||||
users.users.git = {
|
users.users.git = {
|
||||||
|
|
Loading…
Reference in a new issue