1
0
Fork 0
dotfiles/system/nixos/nginx.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;
};
}