git.iko.soy/typeable/nixpkgs
on master help sign in
nixos/nginx: Allow unsetting ssl_ciphers

When using the Modern config from the Mozilla SSL config generator, the `ssl_ciphers` parameter does not need to be set as only TLSv1.3 is permitted and all of its ciphers are reasonable.

commit924035bb97243afc566c20ed055187789e2adba5 authorAneesh Agrawal <aneeshusa@gmail.com> dateMon 26 Oct 2020, 00:32 (6 years ago) parent7929891
1 file changed+2−2
nixos/modules/services/web-servers/nginx/default.nix+2−2
nixos/modules/services/web-servers/nginx/default.nix+2−2
@@ -86,7 +86,7 @@ let
8686 ''}
8787
8888 ssl_protocols ${cfg.sslProtocols};
89− ssl_ciphers ${cfg.sslCiphers};
89+ ${optionalString (cfg.sslCiphers != null) "ssl_ciphers ${cfg.sslCiphers};"}
9090 ${optionalString (cfg.sslDhparam != null) "ssl_dhparam ${cfg.sslDhparam};"}
9191
9292 ${optionalString (cfg.recommendedTlsSettings) ''
@@ -487,7 +487,7 @@ in
487487 };
488488
489489 sslCiphers = mkOption {
490− type = types.str;
490+ type = types.nullOr types.str;
491491 # Keep in sync with https://ssl-config.mozilla.org/#server=nginx&config=intermediate
492492 default = "ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384";
493493 description = "Ciphers to choose from when negotiating TLS handshakes.";