From cdd78d1442b804963ae7b50a645ad9167964a2f9 Mon Sep 17 00:00:00 2001 From: Michal Konecny Date: Thu, 11 Jul 2024 14:00:19 +0200 Subject: [PATCH] [mailman3] Disable search in hyperkitty Mailman has huge memory spikes after migration, those are caused by visiting `/archives/search` URL. This is probably because of the search index still being regenerated. This patch will disable the search from both web UI and as a HTTP URL endpoint. Fixes https://pagure.io/fedora-infrastructure/issue/12043 Signed-off-by: Michal Konecny --- roles/mailman3/files/base.html | 242 ++++++++++++++++++++ roles/mailman3/tasks/main.yml | 12 + roles/mailman3/templates/mailmanweb.conf.j2 | 7 + 3 files changed, 261 insertions(+) create mode 100644 roles/mailman3/files/base.html diff --git a/roles/mailman3/files/base.html b/roles/mailman3/files/base.html new file mode 100644 index 0000000000..a376d7c2af --- /dev/null +++ b/roles/mailman3/files/base.html @@ -0,0 +1,242 @@ +{% load i18n %} +{% load compress %} +{% load static %} +{% load hk_generic %} + + + + + + + {% block head_title %}{{ site_name }}{% endblock %} + + + + + + {% compress css %} + + + + + {% endcompress %} + {% block additional_stylesheets %} {% endblock %} + {% block head_feed %}{% endblock %} + {% include 'hyperkitty/headers.html' %} + + + + + {% include 'hyperkitty/top.html' %} + + + + {% if messages %} +
+ {% for msg in messages %} +
+ + +
+ {% endfor %} +
+ {% endif %} + + + +
+ {% block content %} {% endblock %} +
+ +
+
+

+ {% trans 'Powered by' %} HyperKitty {% trans 'version' %} {{ HYPERKITTY_VERSION }}. +

+
+
+ + + + {% compress js %} +