nginx-reverse-proxy

nginx-reverse-proxy is a skill for Claude Code, Codex from vikasudasi/skill-vault. It costs 30 tokens per session (482 once invoked), scanned A, original, Apache-2.0.

A guide to using nginx, a web server, as a reverse proxy that passes public requests to an internal web app. It covers HTTPS certificates, request headers, upstream health, and connections such as WebSockets.

In plain words
What is it for?
Use it when putting an app behind nginx on ports 80 or 443, adding TLS with Let's Encrypt, forwarding requests to another service, or checking the configuration before reloading it.
Why use it?
It helps expose a self-hosted app safely and correctly, while avoiding common problems with HTTPS, client information, and live connections.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/vikasudasi/skill-vault/nginx-reverse-proxy
Any agent
npx skills add vikasudasi/skill-vault --skill nginx-reverse-proxy
Clone the repo
git clone --depth 1 https://github.com/vikasudasi/skill-vault

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for nginx-reverse-proxy

README.md
[![agentmods](https://agentmods.dev/badge/skills/vikasudasi/skill-vault/nginx-reverse-proxy.svg)](https://agentmods.dev/skills/vikasudasi/skill-vault/nginx-reverse-proxy)
Your own site
<a href="https://agentmods.dev/skills/vikasudasi/skill-vault/nginx-reverse-proxy"><img src="https://agentmods.dev/badge/skills/vikasudasi/skill-vault/nginx-reverse-proxy.svg" alt="Measured on agentmods" height="20"></a>
Per session 30 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 482 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00030 $0.00482
Opus 5 $0.00015 $0.00241
Sonnet 5 $0.00006 $0.00096
Haiku 4.5 $0.00003 $0.00048

Measured 4d ago against content hash 2e3a5a55a55b, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

nginx-reverse-proxy scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/nginx_config.sh), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl -I https://skills.example.com/healthz
skill_vault/data/skills/nginx-reverse-proxy/SKILL.md · 60 lines

What it actually says

nginx as a Reverse Proxy

Use when exposing an internal web app on :80/:443 behind nginx on a self-hosted box.

Basic server block

server {
    listen 443 ssl;
    server_name skills.example.com;

    ssl_certificate     /etc/letsencrypt/live/skills.example.com/fullchain.pem;
    ssl_certificate_key /etc/letsencrypt/live/skills.example.com/privkey.pem;

    location / {
        proxy_pass http://127.0.0.1:8080;
        proxy_set_header Host $host;
        proxy_set_header X-Real-IP $remote_addr;
    }
}

Key directives

  • proxy_set_header Host $host — app sees the external host, not 127.0.0.1.
  • X-Forwarded-For/X-Forwarded-Proto — needed by apps behind TLS for correct scheme detection and logging.
  • Preserve websockets/SSE with proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade;.

TLS

  • certbot --nginx -d skills.example.com for Let's Encrypt; it edits the block for you.
  • After issuing, keep synchronous NORMAL-class settings; set a renewal hook.

Pitfalls

  • Only pass proxy_set_header lines the app actually needs; leaking internal IPs via X-Forwarded-For is a common foot-gun on shared hosts.
  • Test config before reload: nginx -t, then systemctl reload nginx.
  • A location / proxy is enough for most apps; deep path proxying needs care.

Verify

nginx -t
curl -I https://skills.example.com/healthz
Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 4d ago First seen · 60 lines · 30 tokens per session scan A 2e3a5a55a55b

Subscribe to this mod's changes

nginx-reverse-proxy is a skill published in the GitHub repository vikasudasi/skill-vault (0 stars, last pushed 19d ago), licensed Apache-2.0. It adds 30 tokens to every session and 482 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.