Merge pull request #153252 from ncfavier/fix-rejectSSL

nixos/nginx: Revert "disable rejectSSL activation when https is disabled"

7c6f434c cc2d4030 8c1644ca

Changed files
+1 -1
nixos
modules
services
web-servers
nginx
+1 -1
nixos/modules/services/web-servers/nginx/default.nix
···
${optionalString (hasSSL && vhost.sslTrustedCertificate != null) ''
ssl_trusted_certificate ${vhost.sslTrustedCertificate};
''}
-
${optionalString (hasSSL && vhost.rejectSSL) ''
ssl_reject_handshake on;
''}
${optionalString (hasSSL && vhost.kTLS) ''
···
${optionalString (hasSSL && vhost.sslTrustedCertificate != null) ''
ssl_trusted_certificate ${vhost.sslTrustedCertificate};
''}
+
${optionalString vhost.rejectSSL ''
ssl_reject_handshake on;
''}
${optionalString (hasSSL && vhost.kTLS) ''