Skip to content

Commit 2f66ac0

Browse files
committed
nixos/nginx: disable rejectSSL activation when https is disabled
1 parent 7376f4e commit 2f66ac0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

nixos/modules/services/web-servers/nginx/default.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ let
313313
${optionalString (hasSSL && vhost.sslTrustedCertificate != null) ''
314314
ssl_trusted_certificate ${vhost.sslTrustedCertificate};
315315
''}
316-
${optionalString vhost.rejectSSL ''
316+
${optionalString (hasSSL && vhost.rejectSSL) ''
317317
ssl_reject_handshake on;
318318
''}
319319
${optionalString (hasSSL && vhost.kTLS) ''

0 commit comments

Comments
 (0)