New advertisers: 50% off your first month with code FIRSTMONTHSee slots
aj-geddes avatar

Nginx Configuration

Production Nginx configuration guide covering reverse proxy, load balancing, SSL/TLS, caching, and API gateway patterns.

skills.sh installs
1.5K
GitHub stars
387
last updated
Aug 21, 2026
View on GitHub

What it does

  • Covers reverse proxying, upstream load balancing, SSL/TLS termination, HTTP/2 and gRPC, caching, and rate limiting
  • Includes four reference guides: production configuration, HTTPS with load balancing, a configuration script, and monitoring setup
  • Provides a do and don't checklist that bars caching authenticated responses and direct backend access
  • Designed for teams running Nginx in front of backend services who need tuned performance and security defaults

Install

$ npx -y skills add aj-geddes/useful-ai-prompts --skill nginx-configuration -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

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;

Details

Repository
github.com/aj-geddes/useful-ai-prompts
Categories
DevOps & Cloud, Backend & APIs
First seen
Apr 16, 2026

More from aj-geddes/useful-ai-prompts

All 258

Similar to Nginx Configuration

More DevOps & Cloud