diff options
author | lassulus <lassulus@lassul.us> | 2022-08-10 14:41:04 +0200 |
---|---|---|
committer | lassulus <lassulus@lassul.us> | 2022-08-10 14:41:04 +0200 |
commit | 7ce87f5fdb602de7638b2df237e891e6038907ac (patch) | |
tree | 20176f07ecc1c23e8242a31091415d59f8059fcb | |
parent | b16de242e0f1560c42d14b71dccc0858d70643ec (diff) |
l paste: gc after 30 days
-rw-r--r-- | lass/2configs/paste.nix | 10 |
1 files changed, 10 insertions, 0 deletions
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 <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 */ '' |