nixos on watcher

This commit is contained in:
catvayor 2024-06-18 09:47:57 +02:00
parent 2e98ba6e2f
commit 1d62b2065f
7 changed files with 305 additions and 19 deletions

View file

@ -114,6 +114,10 @@
recommendedProxySettings = true;
proxyPass = "http://192.168.122.2/";
};
"traque.katvayor.net".locations."/" = {
recommendedProxySettings = true;
proxyPass = "http://192.168.122.4/";
};
};
streamConfig = ''
upstream kat-virt {
@ -123,18 +127,32 @@
listen 22000;
proxy_pass kat-virt;
}
upstream kat-traque {
server 192.168.122.4:22;
}
server {
listen 22001;
proxy_pass kat-virt;
}
'';
};
# Open ports in the firewall.
networking.firewall.allowedTCPPorts = [
22
53
80
443
22000
];
networking.firewall.allowedUDPPorts = [ 67 ];
networking.firewall = {
allowedTCPPorts = [
22
53
80
443
];
allowedTCPPortRanges = [
{
from = 22000;
to = 22100;
}
];
allowedUDPPorts = [ 67 ];
};
# Or disable the firewall altogether.
# networking.firewall.enable = false;