nixos/nginx: disable rejectSSL activation when https is disabled

main
Izorkin 3 years ago
parent 7376f4e34f
commit 2f66ac01e9
No known key found for this signature in database
GPG Key ID: 1436C1B3F3679F09
  1. 2
      nixos/modules/services/web-servers/nginx/default.nix

@ -313,7 +313,7 @@ let
${optionalString (hasSSL && vhost.sslTrustedCertificate != null) ''
ssl_trusted_certificate ${vhost.sslTrustedCertificate};
''}
${optionalString vhost.rejectSSL ''
${optionalString (hasSSL && vhost.rejectSSL) ''
ssl_reject_handshake on;
''}
${optionalString (hasSSL && vhost.kTLS) ''

Loading…
Cancel
Save