mirror of
https://github.com/kaesaecracker/nixos-configuration.git
synced 2025-01-18 18:40:14 +01:00
27 lines
526 B
Nix
27 lines
526 B
Nix
|
{...}: {
|
||
|
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;
|
||
|
};
|
||
|
|
||
|
serverAliases = ["172.23.42.96"];
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
|
||
|
networking.firewall = {
|
||
|
allowedTCPPorts = [80 8001 3000];
|
||
|
allowedUDPPorts = [2342];
|
||
|
};
|
||
|
}
|