From c04e11a958422971561ddd06bbdf310a825db2a1 Mon Sep 17 00:00:00 2001 From: Rouven Seifert Date: Wed, 6 Mar 2024 20:49:02 +0100 Subject: [PATCH] mailman: add robots.txt --- modules/mailman.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/modules/mailman.nix b/modules/mailman.nix index 90b2767..9b691f0 100644 --- a/modules/mailman.nix +++ b/modules/mailman.nix @@ -57,5 +57,11 @@ services.nginx.virtualHosts."lists.${config.networking.domain}" = { enableACME = true; forceSSL = true; + locations."/robots.txt" = { + extraConfig = '' + add_header Content-Type text/plain; + return 200 "User-agent: *\nDisallow: /\n"; + ''; + }; }; }