nginx

Nginx web server, reverse proxy, and load balancer. Use for web serving.

7 stars

Best use case

nginx is best used when you need a repeatable AI agent workflow instead of a one-off prompt.

Nginx web server, reverse proxy, and load balancer. Use for web serving.

Teams using nginx should expect a more consistent output, faster repeated execution, less prompt rewriting.

When to use this skill

  • You want a reusable workflow that can be run more than once with consistent structure.

When not to use this skill

  • You only need a quick one-off answer and do not need a reusable workflow.
  • You cannot install or maintain the underlying files, dependencies, or repository context.

Installation

Claude Code / Cursor / Codex

$curl -o ~/.claude/skills/nginx/SKILL.md --create-dirs "https://raw.githubusercontent.com/G1Joshi/Agent-Skills/main/skills/devops/nginx/SKILL.md"

Manual Installation

  1. Download SKILL.md from GitHub
  2. Place it in .claude/skills/nginx/SKILL.md inside your project
  3. Restart your AI agent — it will auto-discover the skill

How nginx Compares

Feature / AgentnginxStandard Approach
Platform SupportNot specifiedLimited / Varies
Context Awareness High Baseline
Installation ComplexityUnknownN/A

Frequently Asked Questions

What does this skill do?

Nginx web server, reverse proxy, and load balancer. Use for web serving.

Where can I find the source code?

You can find the source code on GitHub using the link provided at the top of the page.

SKILL.md Source

# Nginx

Nginx is the world's most popular web server. v1.25+ (2025) supports **HTTP/3 (QUIC)** natively.

## When to Use

- **Reverse Proxy**: Termination of SSL, load balancing to backend apps (Node/Python).
- **Static Content**: Serving React/Vue bundles efficiently.
- **Ingress**: Nginx Ingress Controller is the standard K8s ingress.

## Quick Start

```nginx
# nginx.conf
server {
    listen 443 quic reuseport;
    listen 443 ssl;
    http2 on;

    server_name example.com;
    ssl_certificate cert.pem;
    ssl_certificate_key key.pem;

    location / {
        proxy_pass http://localhost:3000;
        add_header Alt-Svc 'h3=":443"; ma=86400';
    }
}
```

## Core Concepts

### Worker Processes

Event-driven architecture. Handles 10k+ connections with low RAM.

### Contexts

`http`, `server`, `location`. Configuration inheritance rules.

### Modules

Extend functionality (e.g., `ngx_http_stub_status_module` for metrics).

## Best Practices (2025)

**Do**:

- **Enable HTTP/3**: Enable QUIC for lower latency over unreliable networks.
- **Tune Buffers**: Optimizing `client_body_buffer_size` prevents disk I/O.
- **Security Headers**: Always set HSTS, X-Frame-Options, etc.

**Don't**:

- **Don't using `if` is evil**: Avoid complex logic in Nginx config. Use `try_files` or `map`.

## References

- [Nginx Documentation](https://nginx.org/en/docs/)