From e77c31fb078c4e26bb50e436b379e95f032e6791 Mon Sep 17 00:00:00 2001 From: Franziska Kunsmann Date: Sat, 24 Jul 2021 12:23:07 +0200 Subject: [PATCH] nodes/rx300: move paste.franzi.business to /var/www, add cronjob to clean up old stuff --- nodes/rx300.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/nodes/rx300.py b/nodes/rx300.py index cdd271a..e4b9a99 100644 --- a/nodes/rx300.py +++ b/nodes/rx300.py @@ -103,6 +103,9 @@ nodes['rx300'] = { '/home/kunsi/.weechat', }, }, + 'cron': { + 'cleanup-paste.franzi.business': '0 0 * * * kunsi /usr/bin/find /var/www/paste.franzi.business/ -maxdepth 1 -type d -mtime +60 -exec rm -r {} \;', + }, 'check-mail-received': { 't-online': { 'email': 'franzi.kunsmann@t-online.de', @@ -348,9 +351,11 @@ nodes['rx300'] = { }, }, 'paste.franzi.business': { - 'webroot': '/home/kunsi/public_html', 'ssl': '_.franzi.business', 'extras': True, + 'webroot_config': { + 'owner': 'kunsi', + }, }, # 'postfixadmin': { # 'domain': 'postfixadmin.franzi.business',