18 lines
392 B
Nix
18 lines
392 B
Nix
{
|
|
services.nginx = {
|
|
enable = true;
|
|
recommendedOptimisation = true;
|
|
recommendedGzipSettings = true;
|
|
recommendedBrotliSettings = true;
|
|
recommendedTlsSettings = true;
|
|
};
|
|
|
|
networking.firewall.interfaces =
|
|
let
|
|
nginxTCPPorts = [ 80 443 ];
|
|
in
|
|
{
|
|
"enp1s0".allowedTCPPorts = nginxTCPPorts;
|
|
"tailscale0".allowedTCPPorts = nginxTCPPorts;
|
|
};
|
|
}
|