diff --git a/hosts/vps1/configuration.nix b/hosts/vps1/configuration.nix index 556c11a..8eede30 100644 --- a/hosts/vps1/configuration.nix +++ b/hosts/vps1/configuration.nix @@ -6,6 +6,12 @@ let akkoDomain = "akko429164.testdrive.${rootDomain}"; iceDomain = "ice758549.testdrive.${rootDomain}"; gitSSHPort = data.services.git.sshPort; + + robots_disallow_all = pkgs.writeText "robots.txt" '' + User-agent: * + Disallow: / + ''; + in { imports = [ @@ -93,7 +99,13 @@ in virtualHosts.${rootDomain} = { onlySSL = true; useACMEHost = "${rootDomain}"; - root = "/var/www/todo"; + root = "/var/www/root"; + locations."/robots.txt" = { + alias = robots_disallow_all; + extraConfig = '' + add_header Content-Type text/plain; + ''; + }; }; virtualHosts.${gtnhDomain} = { forceSSL = true;