1
1
Fork 0

backyard: make pool servable and add mirror vhost

This commit is contained in:
Tim Van Baak 2024-04-27 05:44:44 +00:00
parent 7fabf0b9a1
commit 21192f1b5a
2 changed files with 27 additions and 0 deletions

View File

@ -26,6 +26,28 @@
networking.firewall = {
enable = true;
allowedTCPPorts = [
7474 # mirror revproxy
];
};
services.nginx = {
enable = true;
virtualHosts = {
default = {
default = true;
rejectSSL = true;
locations."/".return = "444";
};
"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
{ addr = "10.22.20.8"; port = 7474; }
];
root = "/pool/tvb/doc/website/mirror";
};
};
};
environment.systemPackages = with pkgs; [
@ -56,6 +78,10 @@
users.groups = {
katydid.gid = 1102;
tvbpoolro = {
gid = 1201;
members = [ "tvb" "nginx" ];
};
};
# This value governs how some stateful data, like databases, are handled

View File

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