nixos-configuration/hosts/iron/services/nginx.nix
2023-11-08 23:54:36 +00:00

20 lines
433 B
Nix

args@{ pkgs, custom-utils, ... }:
let
ports = import ../ports.nix args;
in
{
services.nginx = {
enable = true;
defaultHTTPListenPort = ports.nginx-http.tcp;
defaultSSLListenPort = ports.nginx-https.tcp;
recommendedGzipSettings = true;
recommendedOptimisation = true;
recommendedProxySettings = true;
recommendedTlsSettings = true;
};
networking.firewall.allowedTCPPorts = [
80
443
];
}