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;