gitea: Add tmpfiles configuration to clean up forgejo dumps

This commit is contained in:
Erwin Boskma 2024-09-27 16:59:57 +02:00
parent eb91f7bc03
commit 0cfbc4708d
Signed by: erwin
SSH key fingerprint: SHA256:/Wk1WZdLg+vQHs3in9qq7PsIp8SMzwGSk/RLZ5zPuZk

View file

@ -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 ];
users.users.git = {