backyard: serve entire tvb pool over vpn

This commit is contained in:
Tim Van Baak 2024-04-27 05:54:53 +00:00
parent 3553afc8d8
commit edddf6e610
2 changed files with 15 additions and 1 deletions

View File

@ -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";

View File

@ -243,6 +243,7 @@ in {
];
"10.22.20.8" = [
"backyard.home"
"pool.backyard.home"
"mirror.backyard.home"
"jellyfin.home.ktvb.site"
];