Nginx Hardening Checklist
Nginx Hardening Checklist
Nginx Hardening Checklist
2 trimstray
Use only 4096-bit private keys Keep only TLS 1.2 (+ TLS 1.3)
# openssl genrsa -out domain.com.key 4096 ssl_protocols TLSv1.2;
# certbot certonly -d domain.com --rsa-key-size 4096
Force all connections over TLS Defend against the BEAST attack
return 301 https://$host$request_uri; ssl_prefer_server_ciphers on;
Based on trimstray/nginx-quick-reference