From 7ce87f5fdb602de7638b2df237e891e6038907ac Mon Sep 17 00:00:00 2001 From: lassulus Date: Wed, 10 Aug 2022 14:41:04 +0200 Subject: l paste: gc after 30 days --- lass/2configs/paste.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'lass/2configs/paste.nix') diff --git a/lass/2configs/paste.nix b/lass/2configs/paste.nix index 101899e94..cfd7f5576 100644 --- a/lass/2configs/paste.nix +++ b/lass/2configs/paste.nix @@ -92,6 +92,16 @@ with import ; ]; }; + 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 */ '' -- cgit v1.2.3