From 110edf2465856a2eff75b57ba4eb37b276b9b1c4 Mon Sep 17 00:00:00 2001 From: Ben Sima Date: Sat, 4 Jan 2025 21:50:10 -0500 Subject: Disallow search engines from indexing my code, take 2 This was previously implemented in c467f7611f66b6d9b9dcb589ed534374cd7b2e6c but got lost when I updated nixos at some point. And then I noticed ClaudeBot was crawling my code while I was working on the previous commit. I don't really like that, so I'll just add this noindex and see if it stops. --- Omni/Cloud/Git.nix | 3 +++ 1 file changed, 3 insertions(+) (limited to 'Omni/Cloud/Git.nix') diff --git a/Omni/Cloud/Git.nix b/Omni/Cloud/Git.nix index 50fe2c0..4d04b98 100644 --- a/Omni/Cloud/Git.nix +++ b/Omni/Cloud/Git.nix @@ -14,6 +14,9 @@ in { nginx.virtualHosts."git.${domain}" = { forceSSL = true; useACMEHost = domain; + extraConfig = '' + add_header X-Robots-Tag "noindex, follow" always; + ''; }; cgit."git.${domain}" = { enable = true; -- cgit v1.2.3