centroid: add lan revproxy

This commit is contained in:
Tim Van Baak 2024-01-20 04:51:10 +00:00
parent 89e1752d0e
commit 1956c75a61

View File

@ -62,5 +62,24 @@
'';
};
services.nginx = {
enable = true;
recommendedProxySettings = true;
virtualHosts = {
default = {
default = true;
locations."/".return = "444";
};
"centroid.lan" = {
listen = [ { addr = "centroid.lan"; } ];
locations."/" = {
proxyWebsockets = true;
proxyPass = "http://localhost:6680";
};
};
};
};
networking.firewall.allowedTCPPorts = [ 80 ];
system.stateVersion = "23.11";
}