From 752214fed571dc7cf63bf9e250eea5b70d5e0b69 Mon Sep 17 00:00:00 2001 From: Ben Sima Date: Thu, 28 Sep 2023 19:57:27 -0400 Subject: Disallow search engines from indexing my code MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit I don't really want my code to be discoverable, I only want people looking at it if I have explicitly told them about it. I tested it like so: ϟ curl -v https://simatime.com/git/ 2>&1 | rg x-robots < x-robots-tag: noindex, follow --- Biz/Cloud/Git.nix | 1 + 1 file changed, 1 insertion(+) (limited to 'Biz/Cloud/Git.nix') diff --git a/Biz/Cloud/Git.nix b/Biz/Cloud/Git.nix index 49bc96b..6e3d8c8 100644 --- a/Biz/Cloud/Git.nix +++ b/Biz/Cloud/Git.nix @@ -36,6 +36,7 @@ in { nginx.virtualHosts.${domain}.cgit = { enable = true; location = "/git"; + allowCrawlers = false; virtual-root = "/git"; css = "/git/cgit.css"; logo = "/git/cgit.png"; -- cgit v1.2.3