Files
nix-config/common/server/nginx.nix
zuckerberg 1b7f174089 fix typo
2021-05-16 18:15:02 -04:00

16 lines
345 B
Nix

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