mirror of
https://git.lgmrszd.xyz/Lgmrszd/nix-cfg.git
synced 2024-12-22 16:09:50 +01:00
vps1 server root domain from a directory
This commit is contained in:
parent
06d345fa18
commit
a252925a76
1 changed files with 13 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue