1
1
Fork 0

catacomb: serve mirror directly

This commit is contained in:
Tim Van Baak 2024-01-08 20:10:46 +00:00
parent 44583f670f
commit 84fa63493f
3 changed files with 16 additions and 0 deletions

View File

@ -4,6 +4,7 @@
imports = [ imports = [
./hardware-configuration.nix ./hardware-configuration.nix
./fileserver.nix ./fileserver.nix
./mirror.nix
]; ];
beatific.hostName = "catacomb"; beatific.hostName = "catacomb";

View File

@ -0,0 +1,14 @@
{ ... }:
{
# Configure nginx to serve /nas/doc/website/mirror/
services.nginx = {
enable = true;
virtualHosts."mirror.catacomb.home" = {
listen = [ { addr = "10.22.20.2"; } ];
root = "/nas/doc/website/mirror";
};
};
users.users.nginx.extraGroups = ["nas"];
}

View File

@ -219,6 +219,7 @@ in {
]; ];
"10.22.20.2" = [ "10.22.20.2" = [
"catacomb.home" "catacomb.home"
"mirror.catacomb.home"
]; ];
"10.22.20.3" = [ "10.22.20.3" = [
"palamas.home" "palamas.home"