My Nginx hardening checklist
Small configuration changes that improve a default install.
A fresh Nginx works, but defaults are generous. This is my checklist for each new server.
server_tokens off;- TLS 1.2 and TLS 1.3 only
- HSTS after HTTPS is confirmed
- Security headers and rate limits
- Custom error pages