nginx-configuration▌
aj-geddes/useful-ai-prompts · updated Apr 8, 2026
Production-grade Nginx configuration for reverse proxying, load balancing, SSL/TLS termination, and API gateway patterns.
- ›Covers eight primary use cases: reverse proxy setup, load balancing, SSL termination, HTTP/2 and gRPC support, caching, rate limiting, URL rewriting, and API gateway functionality
- ›Includes reference guides for production configuration, HTTPS with load balancing, automated setup scripts, and monitoring integration
- ›Best practices section highlights performance tunin
Nginx Configuration
Table of Contents
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:
# /etc/nginx/nginx.conf
user nginx;
worker_processes auto;
worker_rlimit_nofile 65535;
error_log /var/log/nginx/error.log warn;
pid /var/run/nginx.pid;
events {
worker_connections 4096;
use epoll;
multi_accept on;
}
http {
include /etc/nginx/mime.types;
default_type application/octet-stream;
# Logging
log_format main '$remote_addr - $remote_user [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" '
'"$http_user_agent" "$http_x_forwarded_for"';
log_format upstream_time '$remote_addr - $remote_user [$time_local] '
'"$request" $status $body_bytes_sent '
'"$http_referer" "$http_user_agent" '
// ... (see reference guides for full implementation)
Reference Guides
Detailed implementations in the references/ directory:
| Guide | Contents |
|---|---|
| Production Nginx Configuration | Production Nginx Configuration |
| HTTPS Server with Load Balancing | HTTPS Server with Load Balancing |
| Nginx Configuration Script | Nginx Configuration Script |
| Nginx Monitoring Configuration | 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
Discussion
Product Hunt–style comments (not star reviews)- No comments yet — start the thread.
Ratings
4.4★★★★★46 reviews- ★★★★★Ama Choi· Dec 28, 2024
Solid pick for teams standardizing on skills: nginx-configuration is focused, and the summary matches what you get after install.
- ★★★★★Aisha Khanna· Dec 12, 2024
I recommend nginx-configuration for anyone iterating fast on agent tooling; clear intent and a small, reviewable surface area.
- ★★★★★Dhruvi Jain· Dec 4, 2024
We added nginx-configuration from the explainx registry; install was straightforward and the SKILL.md answered most questions upfront.
- ★★★★★Oshnikdeep· Nov 23, 2024
Useful defaults in nginx-configuration — fewer surprises than typical one-off scripts, and it plays nicely with `npx skills` flows.
- ★★★★★Liam Iyer· Nov 19, 2024
I recommend nginx-configuration for anyone iterating fast on agent tooling; clear intent and a small, reviewable surface area.
- ★★★★★Liam Singh· Nov 3, 2024
Solid pick for teams standardizing on skills: nginx-configuration is focused, and the summary matches what you get after install.
- ★★★★★Liam Rahman· Oct 22, 2024
nginx-configuration is among the better-maintained entries we tried; worth keeping pinned for repeat workflows.
- ★★★★★Ganesh Mohane· Oct 14, 2024
Registry listing for nginx-configuration matched our evaluation — installs cleanly and behaves as described in the markdown.
- ★★★★★Liam Robinson· Oct 10, 2024
Keeps context tight: nginx-configuration is the kind of skill you can hand to a new teammate without a long onboarding doc.
- ★★★★★Sakshi Patil· Sep 21, 2024
Keeps context tight: nginx-configuration is the kind of skill you can hand to a new teammate without a long onboarding doc.
showing 1-10 of 46