Files
stubbfelnix/services/nginx.nix
2018-02-11 15:44:16 +01:00

18 lines
466 B
Nix

{ config, pkgs, ... }:
{
networking.firewall.allowedTCPPorts = [80 443];
services.nginx = {
enable = true;
sslProtocols = "TLSv1 TLSv1.1 TLSv1.2";
# sslCiphers = "DHE+RSA+AES128+SHA:EECDH+aRSA+AESGCM:EDH+aRSA:EECDH+aRSA:+AES256:+AES128:+SHA1:!CAMELLIA:!SEED:!3DES:!DES:!RC4:!eNULL";
recommendedGzipSettings = true;
recommendedOptimisation = true;
recommendedProxySettings = true;
recommendedTlsSettings = false;
};
}