diff --git a/machine/backyard/default.nix b/machine/backyard/default.nix index bcc11b6..0eb9eed 100644 --- a/machine/backyard/default.nix +++ b/machine/backyard/default.nix @@ -28,6 +28,7 @@ enable = true; allowedTCPPorts = [ 7474 # mirror revproxy + 7475 # http serve tvb pool ]; }; @@ -39,10 +40,22 @@ rejectSSL = true; locations."/".return = "444"; }; + "pool.backyard.home" = { + listen = [ + { addr = "10.22.20.8"; } + # Alternative port to ensure the right vhost connects + { addr = "10.22.20.8"; port = 7475; } + ]; + root = "/pool/tvb"; + locations."/".extraConfig = '' + autoindex on; + autoindex_exact_size off; + ''; + }; "mirror.backyard.home" = { listen = [ { addr = "10.22.20.8"; } - # Serve the mirror on a unique port to ensure the revproxy connects to the right vhost + # Alternative port to ensure the right vhost connects { addr = "10.22.20.8"; port = 7474; } ]; root = "/pool/tvb/doc/website/mirror"; diff --git a/modules/beatific.nix b/modules/beatific.nix index b008717..c0dd57d 100644 --- a/modules/beatific.nix +++ b/modules/beatific.nix @@ -243,6 +243,7 @@ in { ]; "10.22.20.8" = [ "backyard.home" + "pool.backyard.home" "mirror.backyard.home" "jellyfin.home.ktvb.site" ];