diff --git a/nginx.conf b/nginx.conf index 5b18d66..c5761de 100644 --- a/nginx.conf +++ b/nginx.conf @@ -44,6 +44,9 @@ http { # Restrict to modern TLS to avoid handshake issues ssl_protocols TLSv1.2 TLSv1.3; # Drop TLSv1.0/1.1 ssl_prefer_server_ciphers on; + # Harden cipher suite and ECDH curves (mitigate bad key share) + ssl_ciphers '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'; + ssl_ecdh_curve X25519:secp256r1; ## # Logging Settings