vps1 server root domain from a directory

This commit is contained in:
Lgmrszd 2024-05-19 02:18:21 +03:00
parent 06d345fa18
commit a252925a76
No known key found for this signature in database
GPG key ID: 9396B8BA6FBB14DE

View file

@ -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;