mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-01 15:11:25 +00:00
nginx module: Add sslProtocols option
This commit is contained in:
parent
900b311a38
commit
8bd1f401bb
@ -30,7 +30,7 @@ let
|
||||
types_hash_max_size 2048;
|
||||
|
||||
# use secure TLS defaults
|
||||
ssl_protocols TLSv1.2;
|
||||
ssl_protocols ${cfg.sslProtocols};
|
||||
ssl_session_cache shared:SSL:42m;
|
||||
ssl_session_timeout 23m;
|
||||
|
||||
@ -191,6 +191,13 @@ in
|
||||
description = "Show nginx version in headers and error pages";
|
||||
};
|
||||
|
||||
sslProtocols = mkOption {
|
||||
type = types.str;
|
||||
default = "TLSv1.2";
|
||||
example = "TLSv1 TLSv1.1 TLSv1.2";
|
||||
description = "Allowed TLS protocol versions.";
|
||||
};
|
||||
|
||||
virtualHosts = mkOption {
|
||||
type = types.attrsOf (types.submodule (import ./vhost-options.nix {
|
||||
inherit lib;
|
||||
|
Loading…
Reference in New Issue
Block a user