l paste: gc after 30 days
This commit is contained in:
parent
b16de242e0
commit
7ce87f5fdb
@ -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 = {
|
krebs.htgen.paste-form = {
|
||||||
port = 7770;
|
port = 7770;
|
||||||
script = /* sh */ ''
|
script = /* sh */ ''
|
||||||
|
Loading…
Reference in New Issue
Block a user