From b4728aba3fa466660fec59bc12d6164d2f12bdcf Mon Sep 17 00:00:00 2001 From: "Ricardo (XenGi) Band" Date: Wed, 26 Aug 2026 10:11:32 +0200 Subject: [PATCH] prevent robots from crawling archives --- hosts/git/forgejo.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/hosts/git/forgejo.nix b/hosts/git/forgejo.nix index 79df826..11490d6 100644 --- a/hosts/git/forgejo.nix +++ b/hosts/git/forgejo.nix @@ -98,6 +98,12 @@ in deny all; ''; }; + "= /robots.txt" = { + extraConfig = '' + default_type text/plain; + return 200 "User-agent: *\nDisallow: /*/*/archive/\n"; + ''; + }; }; }; };