2021-05-16 18:13:21 -04:00

16 lines
342 B
Nix

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