nginx-config-generator
Skill1 starsChanged 5 months agoApache-2.0View on GitHub
Generates Nginx configurations for reverse proxying, load balancing, SSL termination, and static file serving. Use when configuring Nginx for a web server or API gateway.
In this repository58 other files it gives its agents.
- agent-chain-designerSkill
- api-wrapper-builderSkill
- embeddings-builderSkill
- evaluation-harnessSkill
- fine-tuning-preparerSkill
- llm-router-builderSkill
- ml-model-trainerSkill
- model-benchmarkerSkill
- prompt-engineerSkill
- rag-pipeline-builderSkill
- synthetic-data-generatorSkill
- vector-db-integratorSkill
- csv-processorSkill
- database-schema-designerSkill
- data-pipeline-builderSkill
- etl-workflow-designerSkill
- json-transformerSkill
- pandas-data-cleanerSkill
- report-generatorSkill
- sql-query-optimizerSkill
- time-series-analyzerSkill
- visualization-generatorSkill
- backup-strategySkill
- ci-cd-optimizerSkill
- docker-compose-generatorSkill
- github-actions-pipelineSkill
- kubernetes-deploymentSkill
- load-balancer-configSkill
- log-aggregator-setupSkill
- monitoring-dashboardSkill
- security-hardeningSkill
- ssl-certificate-managerSkill
- terraform-module-builderSkill
- api-security-auditorSkill
- compliance-checkerSkill
- dependency-checkerSkill
- incident-responderSkill
- jwt-security-auditorSkill
- owasp-checkerSkill
- penetration-test-plannerSkill
- secret-detectorSkill
- threat-model-designerSkill
- vulnerability-scannerSkill
- accessibility-auditorSkill
- api-route-builderSkill
- auth-flow-builderSkill
- css-animation-crafterSkill
- form-validatorSkill
- graphql-schema-designerSkill
- html-component-builderSkill
- nextjs-app-scaffoldSkill
- performance-auditorSkill
- pwa-setupSkill
- react-component-generatorSkill
- responsive-layout-systemSkill
- seo-optimizerSkill
- tailwind-design-systemSkill
- websocket-integrationSkill
The file
We split this skill into the rules it gives an agent
2 rules. About 0 are common, 1 is distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 76
Websockets: Add proxy_http_version 1.1.
- Distinctive: line 85
Test rate limiting by sending many requests.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Overview
Produces hardened, production-ready Nginx server blocks for common use cases: reverse proxy to backend apps, load balancing across multiple upstreams, SSL termination with Let's Encrypt, static file serving with caching, gzip, rate limiting, and a full set of security headers (HSTS, CSP, X-Frame-Options, etc.).
When to Use This Skill
- Setting up or replacing a reverse proxy / load balancer.
- Configuring Nginx in front of Node.js, Python, Go, or other app servers.
- Adding HTTPS or improving security headers.
Prerequisites
- Nginx installed (or in Docker).
- Domain name and ability to point DNS.
- For Let's Encrypt: certbot or cert-manager.
Steps
- Basic server block structure:
listen 80+ redirect to HTTPS.listen 443 ssl http2.server_name.- Root or proxy_pass.
- Upstream definition for load balancing or multiple backends.
- SSL/TLS:
- Modern cipher suite.
- OCSP stapling.
- Let's Encrypt paths (
/etc/letsencrypt).
- Proxy settings:
proxy_pass http://backend;proxy_set_headerfor X-Forwarded-*, Host, etc.- Timeouts and buffering.
- Performance:
- gzip on.
- Static file caching headers (immutable for hashed assets).
sendfile,tcp_nopush.
- Security headers (include a reusable snippet):
- Strict-Transport-Security.
- Content-Security-Policy (start restrictive).
- X-Frame-Options, X-Content-Type-Options, Referrer-Policy, Permissions-Policy.
- Rate limiting:
limit_req_zone.- Different zones for login vs general.
- Output:
- Complete
/etc/nginx/sites-available/example.com.conf. - Symlink instructions.
nginx -tand reload commands.- certbot command for SSL.
- Testing with
curl -I.
- Complete
Examples
A full reverse proxy config for a Next.js app on port 3000 with SSL, security headers, gzip, rate limiting, and static asset caching is included, plus a load-balanced upstream example.
Edge Cases & Error Handling
- Websockets: Add
proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade;etc. - Large uploads: Increase
client_max_body_size. - Maintenance mode: Provide a config snippet that returns 503 with a nice page.
Verification
nginx -t— config is valid.curl -I https://example.com— correct headers, 200 or 301.curl -I https://example.com/_next/static/...— long cache headers.- Test rate limiting by sending many requests.
- SSL Labs test (A+ rating target).
- Success: Traffic is proxied correctly, HTTPS works, headers are secure, performance features are active.
References
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
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.

