20 lines
433 B
Nix
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
|
|
];
|
|
}
|