This commit is contained in:
Hadi 2024-06-20 00:14:15 +02:00
parent 5db186ba9b
commit 0114f7281b
5 changed files with 29 additions and 22 deletions

View File

@ -7,24 +7,4 @@
}; };
networking.firewall.allowedTCPPorts = [ 80 443 ]; networking.firewall.allowedTCPPorts = [ 80 443 ];
# test
services.nginx.virtualHosts."anotherhadi.com" = {
serverAliases = [ "www.anotherhadi.com" ];
root = "/etc/www/home";
};
environment.etc = {
"www/home/index.html" = {
text = ''
<html>
<head>
<title>Another Hadi</title>
</head>
<body>
<h1>Another Hadi</h1>
</body>
</html>
'';
};
};
} }

View File

@ -0,0 +1,12 @@
<!DOCTYPE html>
<html>
<head>
<title></title>
</head>
<body>
Anotherhadi website
</body>
</html>

View File

@ -0,0 +1,15 @@
{
imports = [ ./home.anotherhadi.com ];
services.nginx.virtualHosts = {
"anotherhadi.com" = {
serverAliases = [ "www.anotherhadi.com" ];
root = "/etc/www/anotherhadi.com";
};
"home.anotherhadi.com" = { root = "/etc/www/home.anotherhadi.com"; };
};
environment.etc."www" = {
"anotherhadi.com" = { source = ./home.anotherhadi.com; };
};
}

View File

@ -11,7 +11,7 @@ let
''; '';
in { in {
# fix "startpage/index.html".text = '' environment.etc."www/home.anotherhadi.com".text = ''
<!DOCTYPE html> <!DOCTYPE html>
<html lang="en"> <html lang="en">

View File

@ -10,7 +10,7 @@
../modules/server/nextcloud.nix ../modules/server/nextcloud.nix
../modules/server/vaultwarden.nix ../modules/server/vaultwarden.nix
# ../modules/server/homepage/default.nix ../modules/server/www
../modules/server/adguard.nix ../modules/server/adguard.nix
../modules/server/ntfy-sh.nix ../modules/server/ntfy-sh.nix
../modules/server/tailscale.nix ../modules/server/tailscale.nix