Proxy Manager

Manage the shared nginx-proxy Docker container and its network connections. Auto-discovers app containers via VIRTUAL_HOST labels. Start this first — it creates the shared Docker network used by mysql-manager and worktree-manager.

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "Proxy Manager" with this command: npx skills add pereirajair/proxy-manager

Proxy Manager

Manages the shared nginx-proxy Docker container (jwilder/nginx-proxy) and the Docker network (nginx-proxy_net) used by all dev instances.

The proxy auto-discovers containers with VIRTUAL_HOST labels and creates routes. It also owns the shared Docker network that allows MySQL and app containers to communicate.

Architecture

proxy-manager/
├── docker-compose.yml   # nginx-proxy container + codai_net network
└── run.sh               # lifecycle + network connection CLI

Start order: proxy-manager first (creates the network), then mysql-manager, then worktree-manager.

Commands

./run.sh start                      # start nginx-proxy (creates codai_net network)
./run.sh stop                       # stop nginx-proxy
./run.sh status                     # show status, connected networks, active routes
./run.sh connect <instance>         # connect proxy to instance's Docker network
./run.sh disconnect <instance>      # disconnect proxy from instance network
./run.sh auto-connect               # connect proxy to ALL project networks
./run.sh reload                     # reload nginx config without restart

How to Execute Tasks

First-time setup

cd proxy-manager && ./run.sh start

Creates the shared nginx-proxy_net Docker network and starts the proxy on port 80.

After starting an app instance

After worktree-manager start <name>, connect the proxy so routes become available:

./run.sh connect <name>

Routes: http://<name>.frontend.localhost and http://<name>.backend.localhost

After restarting Docker or the host

Proxy reconnects automatically via restart: unless-stopped. If routes are missing, run:

./run.sh auto-connect

Check active routes

./run.sh status

Startup Order

  1. proxy-manager start — creates network, starts proxy
  2. mysql-manager start — joins the shared network
  3. worktree-manager start <instance> — starts app containers
  4. proxy-manager connect <instance> — activates routing

Configuration

VariableDefaultPurpose
PROXY_CONTAINERcodai_nginx_proxynginx-proxy container name
CODAI_NETWORKnginx-proxy_netShared Docker network name
PROJECT_PREFIXcodai-devDocker Compose project prefix

How VIRTUAL_HOST Routing Works

  1. App containers declare VIRTUAL_HOST=<name>.frontend.localhost as a label
  2. jwilder/nginx-proxy reads Docker socket events and generates nginx config
  3. Proxy container must share at least one Docker network with the app container
  4. ./run.sh connect <instance> connects proxy to the instance's network

Rules

  • Start proxy-manager before mysql-manager and worktree-manager.
  • After worktree-manager start <name>, always run proxy-manager connect <name> to activate routes.
  • stop does NOT remove the Docker network. Other containers on the network remain reachable.

Related Plugins

  • mysql-manager — shared MySQL container (start after proxy-manager)
  • worktree-manager — app instances and git worktrees (start after both)

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

Eyes

全球热点事件监控与影响分析。覆盖战争冲突、地缘摩擦、重大政策、疫情、自然灾害、创新技术等可能影响经济、市场和投资的事件,并按行业、汇率、大宗商品链路分析影响。也用于 Cron 定时推送热点摘要(早8点开盘前瞻/晚8点收盘复盘/整点扫描)。

Registry SourceRecently Updated
General

Myapp Creator

Create or update standalone single-file HTML apps with specified features, saving them to fe-service without invoking LLM directly.

Registry SourceRecently Updated
General

ia-debugging

Systematic root-cause debugging with verification. Use for errors, stack traces, broken tests, flaky tests, regressions, or anything not working as expected....

Registry SourceRecently Updated
4760iliaal
General

全网招中标数据平台-知了标讯

全网招中标数据查询与分析助手。当用户涉及以下任何场景时,必须使用此SKILL:查询招标/中标公告、搜索标讯、查找临期/即将到期项目、商机预测、推荐潜在投标供应商、分析公司主营业务/历史中标、查询公司上下游合作客户与供应商、分析竞争对手/竞对企业、查询Top采购单位/Top中标单位/Top中标品牌、招中标数据统计分...

Registry SourceRecently Updated