summaryrefslogtreecommitdiffstats
path: root/lass
diff options
context:
space:
mode:
authorlassulus <lassulus@lassul.us>2022-08-10 14:41:04 +0200
committerlassulus <lassulus@lassul.us>2022-08-10 14:41:04 +0200
commit7ce87f5fdb602de7638b2df237e891e6038907ac (patch)
tree20176f07ecc1c23e8242a31091415d59f8059fcb /lass
parentb16de242e0f1560c42d14b71dccc0858d70643ec (diff)
l paste: gc after 30 days
Diffstat (limited to 'lass')
-rw-r--r--lass/2configs/paste.nix10
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 */ ''