2021-04-11 21:43:27 -04:00

15 lines
379 B
Nix

{ lib, config, pkgs, ... }:
{
config = lib.mkIf config.services.nginx.enable {
services.nginx = {
recommendedGzipSettings = true;
recommendedOptimisation = true;
recommendedProxySettings = true;
recommendedTlsSettings = true;
};
networking.firewall.allowedTCPPorts = [ 80 443 ];
networking.firewall.allowedUDPPorts = [ 80 443 ];
};
}