From 244e40a746618e41d0bbb2d8270e87d96dc67908 Mon Sep 17 00:00:00 2001 From: "Lennart J. Kurzweg (Nx2)" Date: Sun, 22 Jun 2025 14:52:15 +0200 Subject: [PATCH] git robots.txt --- system-modules/nx2site/proxy.nix | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/system-modules/nx2site/proxy.nix b/system-modules/nx2site/proxy.nix index 50bef19..f2678c7 100644 --- a/system-modules/nx2site/proxy.nix +++ b/system-modules/nx2site/proxy.nix @@ -132,7 +132,15 @@ "git.${hyper.domain}" = vh // { http2 = false; listen = dl; - locations = { "/" = { proxyPass = "http://127.0.0.1:3000"; }; }; + locations = { + "/" = { proxyPass = "http://127.0.0.1:3000"; }; + "/robots.txt" = { + extraConfig = '' + default_type text/plain; + return 200 "User-agent: *\nDisallow: /\nAllow: /explore/repos\nAllow: /nx2/dotdiles\nAllow: /nx2"; + ''; + }; + }; }; "doc.${hyper.domain}" = vh // { listen = dl;