1
1
Fork 0

catacomb: remove mirror

This commit is contained in:
Jaculabilis 2024-04-27 14:32:12 +00:00
parent 4624a26e1b
commit 3553afc8d8
2 changed files with 0 additions and 23 deletions

View File

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

View File

@ -1,22 +0,0 @@
{ ... }:
{
# Configure nginx to serve /nas/doc/website/mirror/
services.nginx = {
enable = true;
virtualHosts."mirror.catacomb.home" = {
listen = [
{ addr = "10.22.20.2"; }
# Binding to 10.22.20.2:80 here confuses the empyrean revproxy, even when the revproxy
# is configured with the same hostname, and it serves from fileserver.nix instead.
# This nonstandard port supports the revproxy use case.
{ addr = "10.22.20.2"; port = 7474; }
];
root = "/nas/doc/website/mirror";
};
};
networking.firewall.allowedTCPPorts = [ 7474 ];
users.users.nginx.extraGroups = ["nas"];
}