15 lines
379 B
Nix
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 ];
|
|
};
|
|
} |