From 0fbbcf0618e7acd21f7894089f49dbc352427b27 Mon Sep 17 00:00:00 2001
From: Jelle van der Waa <jelle@archlinux.org>
Date: Sat, 20 Jul 2024 14:10:53 +0200
Subject: [PATCH] archweb: reduce mirrorlog storage duration to 6 months

One year of mirrorlogs keeps a table of 5000 MB which is rather large as
we only show 7 days of logs. Keep it 6 months as maybe in the future
mirror operators are interested in older data.
---
 roles/archweb/templates/local_settings.py.j2 | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/roles/archweb/templates/local_settings.py.j2 b/roles/archweb/templates/local_settings.py.j2
index 1fc36e5cd..4bdba32e0 100644
--- a/roles/archweb/templates/local_settings.py.j2
+++ b/roles/archweb/templates/local_settings.py.j2
@@ -80,4 +80,7 @@ TIER0_MIRROR_DOMAIN = 'repos.archlinux.org'
 
 MASTODON_LINK = 'https://fosstodon.org/@archlinux'
 
+# Keep mirrorlogs around for 6 months
+MIRRORLOG_RETENTION_PERIOD = 180
+
 # vim: set ts=4 sw=4 et:
-- 
GitLab