backyard: serve entire tvb pool over vpn
This commit is contained in:
parent
3553afc8d8
commit
edddf6e610
|
@ -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";
|
||||
|
|
|
@ -243,6 +243,7 @@ in {
|
|||
];
|
||||
"10.22.20.8" = [
|
||||
"backyard.home"
|
||||
"pool.backyard.home"
|
||||
"mirror.backyard.home"
|
||||
"jellyfin.home.ktvb.site"
|
||||
];
|
||||
|
|
Loading…
Reference in New Issue