diff options
author | Ben Sima <ben@bsima.me> | 2023-09-28 19:57:27 -0400 |
---|---|---|
committer | Ben Sima <ben@bsima.me> | 2023-10-25 11:18:23 -0400 |
commit | 752214fed571dc7cf63bf9e250eea5b70d5e0b69 (patch) | |
tree | 9cbfc80b1cf56f389a60b7480fc65184a5f75408 /Biz/Cloud/Git.nix | |
parent | 15c76ee74fc2d015fdb8581b921adf6956653da1 (diff) |
Disallow search engines from indexing my code
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
Diffstat (limited to 'Biz/Cloud/Git.nix')
-rw-r--r-- | Biz/Cloud/Git.nix | 1 |
1 files changed, 1 insertions, 0 deletions
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"; |