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"; + ''; + }; }; }; };