โ† All skills
Tencent SkillHub ยท Developer Tools

Nginx

Configure Nginx for reverse proxy, load balancing, SSL termination, and high-performance static serving.

skill openclawclawhub Free
0 Downloads
0 Stars
0 Installs
0 Score
High Signal

Configure Nginx for reverse proxy, load balancing, SSL termination, and high-performance static serving.

โฌ‡ 0 downloads โ˜… 0 stars Unverified but indexed

Install for OpenClaw

Quick setup
  1. Download the package from Yavira.
  2. Extract the archive and review SKILL.md first.
  3. Import or place the package into your OpenClaw setup.

Requirements

Target platform
OpenClaw
Install method
Manual import
Extraction
Extract archive
Prerequisites
OpenClaw
Primary doc
SKILL.md

Package facts

Download mode
Yavira redirect
Package format
ZIP package
Source platform
Tencent SkillHub
What's included
SKILL.md, examples.md, performance.md, proxy.md, ssl.md

Validation

  • Use the Yavira download entry.
  • Review SKILL.md after the package is downloaded.
  • Confirm the extracted package contains the expected setup assets.

Install with your agent

Agent handoff

Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.

  1. Download the package from Yavira.
  2. Extract it into a folder your agent can access.
  3. Paste one of the prompts below and point your agent at the extracted folder.
New install

I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete.

Upgrade existing

I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run.

Trust & source

Release facts

Source
Tencent SkillHub
Verification
Indexed source record
Version
1.0.1

Documentation

ClawHub primary doc Primary doc: SKILL.md 12 sections Open source page

When to Use

User needs Nginx expertise โ€” from basic server blocks to production configurations. Agent handles reverse proxy, SSL, caching, and performance tuning.

Quick Reference

TopicFileReverse proxy patternsproxy.mdSSL/TLS configurationssl.mdPerformance tuningperformance.mdCommon configurationsexamples.md

Location Matching

Exact = first, then ^~ prefix, then regex ~/~*, then longest prefix location /api matches /api, /api/, /api/anything โ€” prefix match location = /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 files

proxy_pass Trailing Slash

proxy_pass http://backend preserves location path โ€” /api/users โ†’ /api/users proxy_pass http://backend/ replaces location path โ€” /api/users โ†’ /users Common mistake: missing slash = double path โ€” or unexpected routing Test with curl -v to see actual backend request

try_files

try_files $uri $uri/ /index.html for SPA โ€” checks file, then dir, then fallback Last argument is internal redirect โ€” or =404 for error $uri/ tries directory with index โ€” set index index.html Don't use for proxied locations โ€” use proxy_pass directly

Proxy Headers

proxy_set_header Host $host โ€” backend sees original host, not proxy IP proxy_set_header X-Real-IP $remote_addr โ€” client IP, not proxy proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for โ€” append to chain proxy_set_header X-Forwarded-Proto $scheme โ€” for HTTPS detection

Upstream

Define servers in upstream block โ€” upstream backend { server 127.0.0.1:3000; } proxy_pass http://backend uses upstream โ€” load balancing included Health checks with max_fails and fail_timeout โ€” marks server unavailable keepalive 32 for connection pooling โ€” reduces connection overhead

SSL/TLS

ssl_certificate is full chain โ€” cert + intermediates, not just cert ssl_certificate_key is private key โ€” keep permissions restricted ssl_protocols TLSv1.2 TLSv1.3 โ€” disable older protocols ssl_prefer_server_ciphers on โ€” server chooses cipher, not client

Common Mistakes

nginx -t before nginx -s reload โ€” test config first Missing semicolon โ€” syntax error, vague message root inside location โ€” prefer in server, override only when needed alias vs root โ€” alias replaces location, root appends location Variables in if โ€” many things break inside if, avoid complex logic

Variables

$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 config

Performance

worker_processes auto โ€” matches CPU cores worker_connections 1024 โ€” per worker, multiply by workers for max sendfile on โ€” kernel-level file transfer gzip on only for text โ€” gzip_types text/plain application/json ... gzip_min_length 1000 โ€” small files not worth compressing

Logging

access_log off for static assets โ€” reduces I/O Custom log format with log_format โ€” add response time, upstream time error_log level: debug, info, warn, error โ€” debug is verbose Conditional logging with map and if โ€” skip health checks

Category context

Code helpers, APIs, CLIs, browser automation, testing, and developer operations.

Source: Tencent SkillHub

Largest current source with strong distribution and engagement signals.

Package contents

Included in package
5 Docs
  • SKILL.md Primary doc
  • examples.md Docs
  • performance.md Docs
  • proxy.md Docs
  • ssl.md Docs