mirror of
https://git.lgmrszd.xyz/Lgmrszd/nix-cfg.git
synced 2024-11-22 11:17:56 +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}";
|
akkoDomain = "akko429164.testdrive.${rootDomain}";
|
||||||
iceDomain = "ice758549.testdrive.${rootDomain}";
|
iceDomain = "ice758549.testdrive.${rootDomain}";
|
||||||
gitSSHPort = data.services.git.sshPort;
|
gitSSHPort = data.services.git.sshPort;
|
||||||
|
|
||||||
|
robots_disallow_all = pkgs.writeText "robots.txt" ''
|
||||||
|
User-agent: *
|
||||||
|
Disallow: /
|
||||||
|
'';
|
||||||
|
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
|
@ -93,7 +99,13 @@ in
|
||||||
virtualHosts.${rootDomain} = {
|
virtualHosts.${rootDomain} = {
|
||||||
onlySSL = true;
|
onlySSL = true;
|
||||||
useACMEHost = "${rootDomain}";
|
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} = {
|
virtualHosts.${gtnhDomain} = {
|
||||||
forceSSL = true;
|
forceSSL = true;
|
||||||
|
|
Loading…
Reference in a new issue