nixos-configuration/hosts/vinzenz-lpt2/nginx.nix

32 lines
550 B
Nix
Raw Normal View History

2024-10-27 12:42:26 +01:00
_:
2024-10-27 12:33:35 +01:00
{
2024-10-26 18:15:50 +02:00
services.nginx = {
enable = true;
recommendedProxySettings = true;
recommendedTlsSettings = true;
recommendedGzipSettings = true;
recommendedOptimisation = true;
virtualHosts = {
"vinzenz-lpt2" = {
locations."/" = {
proxyPass = "http://127.0.0.1:3000/";
proxyWebsockets = true;
};
2024-10-27 12:33:35 +01:00
serverAliases = [ "172.23.42.96" ];
2024-10-26 18:15:50 +02:00
};
};
};
networking.firewall = {
2024-10-27 12:33:35 +01:00
allowedTCPPorts = [
80
8001
3000
];
allowedUDPPorts = [ 2342 ];
2024-10-26 18:15:50 +02:00
};
}