From 94045bd875950aa407d5d17e130d1754d9c24a38 Mon Sep 17 00:00:00 2001
From: Kristian Klausen <kristian@klausen.dk>
Date: Fri, 16 Sep 2022 15:03:22 +0200
Subject: [PATCH] mailman: Show the mailman3 interface by default

All lists have been migrated to mailman3[1] and mailman3 is what users
should use, so show its interface by default and not the mailman2
interface.

[1] 75ac7d09 ("mailman: Fourth and final batch of mailman3 migrated lists")
---
 roles/mailman/templates/nginx.d.conf.j2 | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/roles/mailman/templates/nginx.d.conf.j2 b/roles/mailman/templates/nginx.d.conf.j2
index e8cd51c88..5fc39fba6 100644
--- a/roles/mailman/templates/nginx.d.conf.j2
+++ b/roles/mailman/templates/nginx.d.conf.j2
@@ -36,6 +36,10 @@ server {
         return 302 $migrated_uri;
     }
 
+    location = / {
+        return 302 /mailman3/lists/;
+    }
+
     # redirect old urls
     location /mailman/ {
         rewrite ^/mailman/(.*) /$1 permanent;
-- 
GitLab