aj-geddes avatar

Nginx Configuration

This gets you production-ready Nginx configs for reverse proxying, load balancing, and SSL termination without starting from scratch. It covers the essentials like HTTP/2, rate limiting, upstream health checks, and proper caching strategies. The reference guides include monitoring setup and scripts to automate configuration. Honest take: Nginx config syntax is notoriously finicky, and having working examples for common patterns like API gateways and multi-backend load balancing saves hours of debugging cryptic error messages. The best practices section actually helps, especially the warnings about not caching authenticated responses and keeping least_conn for load balancing.

skills.sh installs
1.5K
GitHub stars
379
last updated
Aug 21, 2026

Install

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

Installs into .claude/skills of the current project.

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;

Sponsors

Details

Repository
github.com/aj-geddes/useful-ai-prompts
Categories
Backend & APIs, AI & Agent Building, Debugging
First seen
Apr 16, 2026

More from aj-geddes/useful-ai-prompts

All 258
1timescale avatarpostgrestimescale/pg-aiguideUse this skill for any PostgreSQL database work — table design, indexing, data types, constraints, extensions (pgvector, PostGIS, TimescaleDB), search, and migr1.4Kskills.sh installs
2merill avatarmsgraphmerill/msgraphUp-to-date Microsoft Graph API knowledge for AI agents. Search 27,700+ Graph APIs, endpoint docs, resource schemas, and community samples — all locally, no netw1.4Kskills.sh installs
3jezweb avatarmcp-builderjezweb/claude-skillsBuild MCP servers in Python with FastMCP. Define tools / resources / prompts, build the server, test locally, deploy to FastMCP Cloud or Docker. Use whenever th1.4Kskills.sh installs
4ruvnet avatarsecurity-auditruvnet/rufloComprehensive security scanning and vulnerability detection. Includes input validation, path traversal prevention, CVE detection, and secure coding pattern enfo1.4Kskills.sh installs
5mcollina avataroauthmcollina/skillsImplements OAuth 2.0/2.1 authorization flows in Fastify applications — configures authorization code with PKCE, client credentials, device flow, refresh token r1.4Kskills.sh installs
6knowsuchagency avatarmcp2cliknowsuchagency/mcp2cliTurn any MCP server, OpenAPI spec, or GraphQL endpoint into a CLI. Use this skill when the user wants to interact with an MCP server, OpenAPI/REST API, or Graph1.4Kskills.sh installs