l paste: gc after 30 days

This commit is contained in:
lassulus 2022-08-10 14:41:04 +02:00
parent b16de242e0
commit 7ce87f5fdb

View File

@ -92,6 +92,16 @@ with import <stockholm/lib>;
];
};
systemd.services.paste-gc = {
startAt = "daily";
serviceConfig = {
ExecStart = ''
${pkgs.findutils}/bin/find /var/lib/htgen-paste/items -type f -mtime '+30' -exec rm {} \;
'';
User = "htgen-paste";
};
};
krebs.htgen.paste-form = {
port = 7770;
script = /* sh */ ''