agentleFS
Ghost7802Ghost7802/awesome-api-skills/skills/nginx/SKILL.md

nginx

Skill13 starsChanged 27 days agoMITView on GitHub

High performance load balancer, web server, and reverse proxy.

10 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

3 rules. 0 are common, 1 is distinctive, and 2 are very specific to this project.

  • 0

    Common

    Most of the 10 edited versions we read keep these.

  • 1

    Distinctive

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    If NGINX returns 502 Bad Gateway, it means the backend service (e.g., your Express app) is crashed or unreachable.

    line 30
  2. Very specific:

    Always hide your server signature (server_tokens off;).

    line 33
  3. Distinctive:

    Use this when your agent works with nginx — structured patterns beat pasted docs and prevent common hallucinations.

    line 42

“Common” is measured: kept by at least 6 in 10 of the 10 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

NGINX Skill

High performance load balancer, web server, and reverse proxy.

Ecosystem Graph

graph LR
  nginx["NGINX"]
  nginx -- "integrates with" --> kubernetes
  nginx -- "integrates with" --> docker

Quick Start

NGINX is primarily used in modern architectures as an Ingress Controller (in Kubernetes) or as a lightweight reverse proxy in front of Node.js/Python microservices to handle SSL termination and static file serving.

docker run -p 80:80 -v ./nginx.conf:/etc/nginx/nginx.conf nginx

Production Patterns

Node.js Reverse Proxying

Node.js is single-threaded and struggles with serving thousands of static assets simultaneously. Place NGINX in front to serve /public assets efficiently, and proxy /api traffic back to Node.js using proxy_pass.

Architecture & Scaling

Event-Driven Architecture

NGINX uses an asynchronous, event-driven architecture rather than allocating a thread per connection (like Apache). This allows it to handle tens of thousands of concurrent connections with minimal RAM usage.

Error Recovery

If NGINX returns 502 Bad Gateway, it means the backend service (e.g., your Express app) is crashed or unreachable. If it returns 504 Gateway Timeout, your backend took longer to respond than the configured proxy_read_timeout.

Security Notes

Always hide your server signature (server_tokens off;). Configure rate limiting (limit_req_zone) to protect your backend APIs from brute-force or DDoS attacks directly at the proxy layer.

Relationships

Works Well With: kubernetes, docker

References

Why use this skill

Use this when your agent works with nginx — structured patterns beat pasted docs and prevent common hallucinations.

AI pitfalls

  • Referencing CLI flags or config keys that do not exist
  • Using outdated major versions of tools
  • Skipping lockfile or version pinning in examples

Production checklist

  • Secrets in environment variables, not source code
  • Error handling and logging in place
  • Rate limits and timeouts configured

Related skills

  • kubernetes — integrates with
  • docker — integrates with

Last Verified: 2026-07-02

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.