Emergency CheatsheetCODE: 007-NGINX-REVERSE-PROXY⏱️ ~2 min read
Nginx Reverse Proxy: Upstream Keepalive, TLS Hardening & Rate Limiting
Production Nginx configuration tuning: connection pooling with keepalive, HTTP/2 & modern TLS ciphers, and DDoS rate limiting.
Authored by: Vibe DevOps · Published: 10/20/2026
Tune production Nginx reverse proxy performance with upstream keepalive pooling, TLS 1.3 hardening, and DDoS rate limiting.
1. Upstream Keepalive Pooling
upstream backend {
server 10.0.0.1:8080;
keepalive 32;
}
server {
location / {
proxy_pass http://backend;
proxy_http_version 1.1;
proxy_set_header Connection "";
}
}
2. Rate Limiting Protection
limit_req_zone $binary_remote_addr zone=api_limit:10m rate=10r/s;
💡 Team Storage & Usage Tips
Store the vector PDF in your internal team repository (Notion, Confluence) or print it out in A4 format next to your workstation for rapid troubleshooting during midnight production outages.
🎬 RELATED ARCHITECTURE REEL
Deep Dive: HTTP 502 vs. 504: Distinguishing Bad Gateway from Gateway Timeout
Watch the accompanying 60-second visual animation reel to intuitively grasp the underlying architecture.