Minimal Nginx TLS 1.3 & HTTP/2 Configuration

Published 2026-11-15 · HTTPS

Ubuntu 24.04 ships with Nginx 1.24 linked against OpenSSL 3, making modern TLS 1.3 and X25519 key exchange trivial to configure:

ssl_protocols TLSv1.3;
ssl_ecdh_curve X25519:P-256:P-384;
add_header Strict-Transport-Security "max-age=31536000; includeSubDomains" always;