From 3553afc8d83d25925eb50f84605af4dad109a423 Mon Sep 17 00:00:00 2001 From: Jaculabilis Date: Sat, 27 Apr 2024 14:32:12 +0000 Subject: [PATCH] catacomb: remove mirror --- machine/catacomb/default.nix | 1 - machine/catacomb/mirror.nix | 22 ---------------------- 2 files changed, 23 deletions(-) delete mode 100644 machine/catacomb/mirror.nix diff --git a/machine/catacomb/default.nix b/machine/catacomb/default.nix index 7197ca5..7a8d48f 100644 --- a/machine/catacomb/default.nix +++ b/machine/catacomb/default.nix @@ -4,7 +4,6 @@ imports = [ ./hardware-configuration.nix ./fileserver.nix - ./mirror.nix ]; beatific.hostName = "catacomb"; diff --git a/machine/catacomb/mirror.nix b/machine/catacomb/mirror.nix deleted file mode 100644 index f37b822..0000000 --- a/machine/catacomb/mirror.nix +++ /dev/null @@ -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"]; -}