catacomb: serve mirror directly
This commit is contained in:
parent
44583f670f
commit
84fa63493f
@ -4,6 +4,7 @@
|
||||
imports = [
|
||||
./hardware-configuration.nix
|
||||
./fileserver.nix
|
||||
./mirror.nix
|
||||
];
|
||||
|
||||
beatific.hostName = "catacomb";
|
||||
|
14
machine/catacomb/mirror.nix
Normal file
14
machine/catacomb/mirror.nix
Normal 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"];
|
||||
}
|
@ -219,6 +219,7 @@ in {
|
||||
];
|
||||
"10.22.20.2" = [
|
||||
"catacomb.home"
|
||||
"mirror.catacomb.home"
|
||||
];
|
||||
"10.22.20.3" = [
|
||||
"palamas.home"
|
||||
|
Loading…
Reference in New Issue
Block a user