Update
This commit is contained in:
parent
5db186ba9b
commit
0114f7281b
@ -7,24 +7,4 @@
|
||||
};
|
||||
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>
|
||||
'';
|
||||
};
|
||||
};
|
||||
}
|
||||
|
12
hosts/modules/server/www/anotherhadi.com/index.html
Normal file
12
hosts/modules/server/www/anotherhadi.com/index.html
Normal file
@ -0,0 +1,12 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<title></title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
Anotherhadi website
|
||||
</body>
|
||||
|
||||
</html>
|
15
hosts/modules/server/www/default.nix
Normal file
15
hosts/modules/server/www/default.nix
Normal 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; };
|
||||
};
|
||||
}
|
@ -11,7 +11,7 @@ let
|
||||
'';
|
||||
in {
|
||||
|
||||
# fix "startpage/index.html".text = ''
|
||||
environment.etc."www/home.anotherhadi.com".text = ''
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
|
@ -10,7 +10,7 @@
|
||||
../modules/server/nextcloud.nix
|
||||
../modules/server/vaultwarden.nix
|
||||
|
||||
# ../modules/server/homepage/default.nix
|
||||
../modules/server/www
|
||||
../modules/server/adguard.nix
|
||||
../modules/server/ntfy-sh.nix
|
||||
../modules/server/tailscale.nix
|
||||
|
Loading…
Reference in New Issue
Block a user