nginx-configuration
Configure Nginx web server for high-performance reverse proxy, load balancing, SSL/TLS, caching, and API gateway functionality.
By aj-geddes · 1,347 installs
npx skills add aj-geddes/useful-ai-prompts --skill nginx-configuration
Source repository · Upstream listing
Nginx Configuration
Table of Contents
[Overview]( overview)
[When to Use]( when to use)
[Quick Start]( quick start)
[Reference Guides]( reference guides)
[Best Practices]( best practices)
Overview
Master Nginx configuration for production grade web servers, reverse proxies, load balancing, SSL termination, caching, and API gateway patterns with advanced performance tuning.
When to Use
Reverse proxy setup
Load balancing between backend services
SSL/TLS termination
HTTP/2 and gRPC support
Caching and compression
Rate limiting and DDoS protection
URL rewriting and routing
API gateway functionality
Quick Start
Minimal working example:
Reference Guides
Detailed implementations in the references/ directory:
Guide Contents
[Production Nginx Configuration](references/production nginx configuration.md) Production Nginx Configuration
[HTTPS Server with Load Balancing](references/https server with load balancing.md) HTTPS Server with Load Balancing
[Nginx Configuration Script](references/nginx configuration script.md) Nginx Configuration Script
[Nginx Monitoring Configuration](references/nginx monitoring configuration.md) Nginx Monitoring Configuration
Best Practices
✅ DO
Use HTTP/2 for performance
Enable SSL/TLS with strong ciphers
Implement proper caching strategies
Use upstream connection pooling
Monitor with stub status or prometheus
Rate limit to prevent abuse
Add security headers
Use least conn load balancing
Keep error logs separate from access logs
❌ DON'T
Disable gzip compression
Use weak SSL ciphers
Cache authenticated responses
Allow direct access to backends
Ignore upstream health checks
Mix HTTP and HTTPS without redirect
Use default error pages in production
Cache sensitive user data