caddy

Add, manage, and troubleshoot Caddy reverse proxy routes for local apps via wildcard subdomains.

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 "caddy" with this command: npx skills add brennerspear/caddy-reverse-proxy

Caddy — Wildcard Reverse Proxy for Local Apps

Routes *.YOUR_DOMAIN subdomains to local services over HTTPS via Caddy reverse proxy with automatic Let's Encrypt certificates. Designed for Tailscale-only access (no public exposure).

DNS provider: This skill uses Vercel DNS for DNS-01 ACME challenges. If you use a different DNS provider, swap the caddy-dns/vercel plugin and TLS snippet for your provider's equivalent (see caddy-dns).

Add a New App

  1. Create a background service (LaunchAgent on macOS, systemd on Linux) — see reference.md for templates
  2. Add to Caddyfile (~/.config/caddy/Caddyfile):
    appname.YOUR_DOMAIN {
        import vercel_tls
        reverse_proxy localhost:31XX
    }
    
    Also add a <li> entry in the dashboard HTML block at the top.
  3. Reload Caddy:
    ~/.local/bin/caddy reload --config ~/.config/caddy/Caddyfile --address localhost:2019
    
    TLS cert provisioning takes 30–60 seconds (DNS-01 challenge).
  4. If it connects to OpenClaw Gateway — see OPENCLAW.md in this folder for gateway-specific config.

Quick Dev Servers

Companion skill: dev-serve — one-command dev server + Caddy routing.

dev-serve up ~/projects/myapp        # → https://myapp.YOUR_DOMAIN
dev-serve down myapp
dev-serve ls

Reload / Restart

# Reload config (no restart, no sudo)
~/.local/bin/caddy reload --config ~/.config/caddy/Caddyfile --address localhost:2019

# Full restart
# macOS:
sudo launchctl unload /Library/LaunchDaemons/com.caddyserver.caddy.plist
sudo launchctl load /Library/LaunchDaemons/com.caddyserver.caddy.plist
# Linux:
systemctl --user restart caddy

Troubleshoot

  • Cert not issuing: tail -50 /var/log/caddy-error.log | grep -i error — likely expired Vercel API token
  • DNS not resolving: dig +short appname.YOUR_DOMAIN — should return your Tailscale IP
  • TLS error (curl exit 35): Cert hasn't provisioned yet, wait 30-60s

For full reference (example apps, key files, build instructions): see reference.md. For OpenClaw gateway integration: see OPENCLAW.md.

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

OpenClaw Growth Engineer

OpenClaw-first growth autopilot for mobile apps. Correlate analytics, crashes, billing, feedback, store signals, and repo context into proposal drafts that c...

Registry SourceRecently Updated
General

scrum-master

Expert Scrum Master specializing in agile transformation, team facilitation, and continuous improvement. Masters Scrum framework implementation, impediment r...

Registry SourceRecently Updated
General

AI-Cardiac-Rehab

AI 心脏康复管理系统 — 基于 ACC/AHA 指南的安全增强型康复管理 Web 应用。症状预警、风险分层、个体化运动处方、药物依从性提醒。

Registry SourceRecently Updated
General

circuit-intimate-therapy

婚姻家庭咨询里用"电路类比"做理论解释、案例诊断、干预方案设计,并在每次回答末尾**生成一个上下文相关的 HTML 交互 app**(写到 ~/circapps/generated/),复用 ~/circapps/ 下 12 个 canonical app 的视觉系统(common.css/common.js)。...

Registry SourceRecently Updated