在 Manus 中运行任何 Skill
一键导入
一键导入
一键在 Manus 中运行任何 Skill
开始使用nginx
星标3
分支0
更新时间2026年2月17日 15:54
Nginx configuration, reverse proxy, and SSL
安装
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
SKILL.md
readonly菜单
Nginx configuration, reverse proxy, and SSL
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | nginx |
| description | Nginx configuration, reverse proxy, and SSL |
| metadata | {"openclaw":{"always":false,"emoji":"🌍"}} |
Nginx management: configuration, reverse proxy, SSL.
# Check if installed
command -v nginx
# Install — macOS
brew install nginx
# Install — Ubuntu/Debian
sudo apt install nginx
# Test configuration (ALWAYS before reload)
sudo nginx -t
# Reload (applies config without downtime)
sudo systemctl reload nginx
# Restart
sudo systemctl restart nginx
# Status
systemctl status nginx
# Version and modules
nginx -V
# Access log
sudo tail -f /var/log/nginx/access.log
sudo tail -100 /var/log/nginx/access.log
# Error log
sudo tail -f /var/log/nginx/error.log
# Logs for a specific site (if configured)
sudo tail -f /var/log/nginx/<site>-access.log
# List sites
ls /etc/nginx/sites-available/
ls /etc/nginx/sites-enabled/
# Enable site
sudo ln -s /etc/nginx/sites-available/<site> /etc/nginx/sites-enabled/
sudo nginx -t && sudo systemctl reload nginx
# Disable site
sudo rm /etc/nginx/sites-enabled/<site>
sudo nginx -t && sudo systemctl reload nginx
server {
listen 80;
server_name example.com;
location / {
proxy_pass http://localhost:3000;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
}
# Install certbot
sudo apt install certbot python3-certbot-nginx
# Get certificate (modifies nginx config automatically)
sudo certbot --nginx -d example.com
# Renew
sudo certbot renew --dry-run
sudo certbot renew
location /ws {
proxy_pass http://localhost:8080;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header Host $host;
}
nginx -t before reload/restartsites-available + symlink to sites-enablederror_log /var/log/nginx/debug.log debug;limit_req_zone in the http section/etc/nginx/nginx.conf for performanceGoogle Calendar — list, create, and manage events via gcal CLI
Manage HubSpot CRM — contacts, companies, deals, tickets
Manage Shopify store — products, orders, customers, inventory
Configure audio transcription and image/video understanding for channels
AWS CLI for S3, EC2, Lambda, CloudWatch, RDS, and ECS
Google Calendar — list, create, and manage events via gcal CLI