Configure Nginx for reverse proxy, load balancing, SSL termination, and high-performance static serving.
数据来源:ClawHub。 在 ClawSkills 查看
选择你使用的 Agent
方法一:命令行安装(推荐)
推荐(无需提前安装 clawhub)
npx clawhub@latest --dir ~/.claude/skills install nginx或使用 clawhub CLI(需提前安装)
clawhub --dir ~/.claude/skills install nginx⚠️ 需要 Node.js 18+,没有 Node?请使用下方方法二直接下载 ZIP。 安装 Node.js →
方法二:手动下载安装(无需 Node)
下载 ZIP,解压后将文件夹放到以下路径,重启 Agent 即可:
安装路径
~/.claude/skills/nginx/💡解压后将文件夹放到上方路径,重启 Agent 即可生效
--- name: Nginx slug: nginx version: 1.0.1 description: Configure Nginx for reverse proxy, load balancing, SSL termination, and high-performance static serving. ---
User needs Nginx expertise — from basic server blocks to production configurations. Agent handles reverse proxy, SSL, caching, and performance tuning.
| Topic | File | |-------|------| | Reverse proxy patterns | proxy.md | | SSL/TLS configuration | ssl.md | | Performance tuning | performance.md | | Common configurations | examples.md |
= first, then ^~ prefix, then regex ~/~*, then longest prefixlocation /api matches /api, /api/, /api/anything — prefix matchlocation = /api only matches exactly /api — not /api/location ~ \.php$ is regex, case-sensitive — ~* for case-insensitive^~ stops regex search if prefix matches — use for static filesproxy_pass http://backend preserves location path — /api/users → /api/usersproxy_pass http://backend/ replaces location path — /api/users → /userscurl -v to see actual backend requesttry_files $uri $uri/ /index.html for SPA — checks file, then dir, then fallback=404 for error$uri/ tries directory with index — set index index.htmlproxy_pass directlyproxy_set_header Host $host — backend sees original host, not proxy IPproxy_set_header X-Real-IP $remote_addr — client IP, not proxyproxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for — append to chainproxy_set_header X-Forwarded-Proto $scheme — for HTTPS detectionupstream block — upstream backend { server 127.0.0.1:3000; }proxy_pass http://backend uses upstream — load balancing includedmax_fails and fail_timeout — marks server unavailablekeepalive 32 for connection pooling — reduces connection overheadssl_certificate is full chain — cert + intermediates, not just certssl_certificate_key is private key — keep permissions restrictedssl_protocols TLSv1.2 TLSv1.3 — disable older protocolsssl_prefer_server_ciphers on — server chooses cipher, not clientnginx -t before nginx -s reload — test config firstroot inside location — prefer in server, override only when neededalias vs root — alias replaces location, root appends locationif — many things break inside if, avoid complex logic$uri is decoded, normalized path — /foo%20bar becomes /foo bar$request_uri is original with query string — unchanged from client$args is query string — $arg_name for specific parameter$host from Host header — $server_name from configworker_processes auto — matches CPU coresworker_connections 1024 — per worker, multiply by workers for maxsendfile on — kernel-level file transfergzip on only for text — gzip_types text/plain application/json ...gzip_min_length 1000 — small files not worth compressingaccess_log off for static assets — reduces I/Olog_format — add response time, upstream timeerror_log level: debug, info, warn, error — debug is verbosemap and if — skip health checks安装 Nginx 后,可以对 AI 说这些话来触发它
Help me get started with Nginx
Explains what Nginx does, walks through the setup, and runs a quick demo based on your current project
Use Nginx to configure Nginx for reverse proxy, load balancing, SSL termination,...
Invokes Nginx with the right parameters and returns the result directly in the conversation
What can I do with Nginx in my developer & devops workflow?
Lists the top use cases for Nginx, with example commands for each scenario
将技能文件夹放到 ~/.claude/skills/nginx/ 目录(个人级,所有项目可用),或 .claude/skills/nginx/(项目级)。重启 AI 客户端后,用 /nginx 主动调用,或让 AI 根据上下文自动发现并使用。
Nginx 支持 Claude、Cursor、OpenClaw,可与这些 AI 平台无缝集成,扩展其能力。
Nginx 可免费安装使用。请查阅仓库了解许可证信息。
Configure Nginx for reverse proxy, load balancing, SSL termination, and high-performance static serving.
Nginx 属于「Developer & DevOps」分类,该分类的技能帮助 AI 智能体在此领域执行专业任务。
Automate my developer & devops tasks using Nginx
Identifies repetitive steps in your workflow and sets up Nginx to handle them automatically