[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6EEHQHT85FRXJ30HSFETD2F":3,"skill-same:01M6EEHQHT85FRXJ30HSFETD2F":45},{"skillNo":4,"name":5,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":20,"frontMatter":21,"refName":22,"commitSha":23,"skillDirectory":24,"forksCount":25,"repositoryHtmlUrl":26,"repositoryHomepageUrl":27,"ownerHtmlUrl":28,"ownerBlogUrl":6,"ownerDescription":29,"updatedAt":30,"install":31,"resources":44},"01M6EEHQHT85FRXJ30HSFETD2F","caddy",null,"ComeOnOliver\u002Fskillshub","ComeOnOliver","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F43215937?v=4","01M6E5JNFECJAAVFE0W7SMWWD2","Haoran Shu","01M6E5JNNDQS7AJZDYFQ8TPZCK",66,"MIT","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002FTerminalSkills\u002Fskills\u002Fcaddy\u002FSKILL.md",[],[5],"2026-11-10 10:12:30",false,"# Caddy\n\nModern web server with automatic HTTPS. Configures TLS certificates from Let's Encrypt without any setup — just specify domain names and Caddy handles the rest.\n\n## Setup\n\n```bash\n# Debian\u002FUbuntu\nsudo apt install -y debian-keyring debian-archive-keyring apt-transport-https\ncurl -1sLf 'https:\u002F\u002Fdl.cloudsmith.io\u002Fpublic\u002Fcaddy\u002Fstable\u002Fgpg.key' | sudo gpg --dearmor -o \u002Fusr\u002Fshare\u002Fkeyrings\u002Fcaddy-stable-archive-keyring.gpg\ncurl -1sLf 'https:\u002F\u002Fdl.cloudsmith.io\u002Fpublic\u002Fcaddy\u002Fstable\u002Fdebian.deb.txt' | sudo tee \u002Fetc\u002Fapt\u002Fsources.list.d\u002Fcaddy-stable.list\nsudo apt update && sudo apt install caddy\n\n# Docker\ndocker run -d -p 80:80 -p 443:443 \\\n  -v caddy_data:\u002Fdata -v caddy_config:\u002Fconfig \\\n  -v $PWD\u002FCaddyfile:\u002Fetc\u002Fcaddy\u002FCaddyfile \\\n  caddy:latest\n```\n\n## Caddyfile (config format)\n\n### Simple Static Site\n\n```caddyfile\nexample.com {\n    root * \u002Fvar\u002Fwww\u002Fhtml\n    file_server\n    encode gzip zstd\n}\n```\n\nThat's it. Caddy automatically obtains and renews a TLS certificate for `example.com`.\n\n### Reverse Proxy\n\n```caddyfile\n# Single backend\napp.example.com {\n    reverse_proxy localhost:3000\n}\n\n# With health checks and load balancing\napi.example.com {\n    reverse_proxy localhost:3001 localhost:3002 localhost:3003 {\n        lb_policy round_robin\n        health_uri \u002Fhealth\n        health_interval 10s\n        health_timeout 5s\n    }\n}\n\n# WebSocket support (automatic — no special config needed)\nws.example.com {\n    reverse_proxy localhost:8080\n}\n```\n\n### Multi-Service Setup\n\n```caddyfile\n# Main app\nexample.com {\n    # API routes → backend\n    handle \u002Fapi\u002F* {\n        reverse_proxy localhost:3000\n    }\n\n    # Static assets → file server with caching\n    handle \u002Fstatic\u002F* {\n        root * \u002Fvar\u002Fwww\u002Fstatic\n        file_server\n        header Cache-Control \"public, max-age=31536000, immutable\"\n    }\n\n    # Everything else → frontend SPA\n    handle {\n        root * \u002Fvar\u002Fwww\u002Fapp\n        try_files {path} \u002Findex.html\n        file_server\n    }\n\n    encode gzip zstd\n}\n\n# Admin panel — separate subdomain\nadmin.example.com {\n    reverse_proxy localhost:3001\n\n    # Basic auth protection\n    basicauth {\n        admin $2a$14$...  # bcrypt hash: caddy hash-password\n    }\n}\n\n# Redirect www to non-www\nwww.example.com {\n    redir https:\u002F\u002Fexample.com{uri} permanent\n}\n```\n\n### Security Headers\n\n```caddyfile\nexample.com {\n    reverse_proxy localhost:3000\n\n    header {\n        # Security headers\n        Strict-Transport-Security \"max-age=31536000; includeSubDomains; preload\"\n        X-Content-Type-Options \"nosniff\"\n        X-Frame-Options \"DENY\"\n        Referrer-Policy \"strict-origin-when-cross-origin\"\n        Content-Security-Policy \"default-src 'self'; script-src 'self'; style-src 'self' 'unsafe-inline'\"\n        Permissions-Policy \"camera=(), microphone=(), geolocation=()\"\n\n        # Remove server identification\n        -Server\n    }\n}\n```\n\n### Rate Limiting\n\n```caddyfile\nexample.com {\n    # Rate limit: 100 requests per minute per IP\n    rate_limit {\n        zone api_zone {\n            key {remote_host}\n            events 100\n            window 1m\n        }\n    }\n\n    reverse_proxy localhost:3000\n}\n```\n\n### CORS\n\n```caddyfile\napi.example.com {\n    @cors_preflight method OPTIONS\n    handle @cors_preflight {\n        header Access-Control-Allow-Origin \"https:\u002F\u002Fapp.example.com\"\n        header Access-Control-Allow-Methods \"GET, POST, PUT, DELETE, OPTIONS\"\n        header Access-Control-Allow-Headers \"Content-Type, Authorization\"\n        header Access-Control-Max-Age \"86400\"\n        respond \"\" 204\n    }\n\n    header Access-Control-Allow-Origin \"https:\u002F\u002Fapp.example.com\"\n    reverse_proxy localhost:3000\n}\n```\n\n## JSON Config (API mode)\n\nFor programmatic configuration instead of Caddyfile:\n\n```json\n{\n  \"apps\": {\n    \"http\": {\n      \"servers\": {\n        \"main\": {\n          \"listen\": [\":443\"],\n          \"routes\": [\n            {\n              \"match\": [{\"host\": [\"api.example.com\"]}],\n              \"handle\": [{\n                \"handler\": \"reverse_proxy\",\n                \"upstreams\": [\n                  {\"dial\": \"localhost:3000\"},\n                  {\"dial\": \"localhost:3001\"}\n                ],\n                \"load_balancing\": {\"selection_policy\": {\"policy\": \"round_robin\"}},\n                \"health_checks\": {\n                  \"active\": {\"uri\": \"\u002Fhealth\", \"interval\": \"10s\"}\n                }\n              }]\n            }\n          ]\n        }\n      }\n    }\n  }\n}\n```\n\n### Config API\n\nCaddy exposes a REST API for live configuration changes — no restarts needed:\n\n```bash\n# Load full config\ncurl -X POST http:\u002F\u002Flocalhost:2019\u002Fload \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d @caddy-config.json\n\n# Get current config\ncurl http:\u002F\u002Flocalhost:2019\u002Fconfig\u002F\n\n# Update a specific route without touching anything else\ncurl -X PATCH \"http:\u002F\u002Flocalhost:2019\u002Fconfig\u002Fapps\u002Fhttp\u002Fservers\u002Fmain\u002Froutes\u002F0\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"handle\": [{\"handler\": \"reverse_proxy\", \"upstreams\": [{\"dial\": \"localhost:3002\"}]}]}'\n```\n\n## Common Patterns\n\n### Local Development with HTTPS\n\n```caddyfile\n# Caddyfile.dev — local HTTPS with self-signed cert\nlocalhost {\n    tls internal  # Auto-generate a local CA cert\n\n    reverse_proxy \u002Fapi\u002F* localhost:3000\n    reverse_proxy localhost:5173  # Vite dev server\n}\n```\n\n```bash\ncaddy run --config Caddyfile.dev\n# App available at https:\u002F\u002Flocalhost with valid (local) TLS\n```\n\n### Wildcard Subdomains\n\n```caddyfile\n# Requires DNS challenge (e.g., Cloudflare DNS plugin)\n*.example.com {\n    tls {\n        dns cloudflare {env.CF_API_TOKEN}\n    }\n\n    # Route subdomains to different backends\n    @app host app.example.com\n    handle @app {\n        reverse_proxy localhost:3000\n    }\n\n    @docs host docs.example.com\n    handle @docs {\n        reverse_proxy localhost:3001\n    }\n\n    # Catch-all: 404\n    handle {\n        respond \"Not found\" 404\n    }\n}\n```\n\n### Caching Proxy\n\n```caddyfile\napi.example.com {\n    reverse_proxy localhost:3000\n\n    # Cache responses from the backend\n    @cacheable {\n        method GET\n        path \u002Fapi\u002Fpublic\u002F*\n    }\n    header @cacheable Cache-Control \"public, max-age=300\"  # 5 min cache\n}\n```\n\n## Caddy vs Nginx\n\n| | Caddy | Nginx |\n|---|---|---|\n| **HTTPS** | Automatic (Let's Encrypt) | Manual cert setup or certbot |\n| **Config format** | Caddyfile (simple) or JSON | nginx.conf (complex) |\n| **Hot reload** | API-based, zero downtime | `nginx -s reload` |\n| **HTTP\u002F3** | Built-in | Requires compilation flags |\n| **Plugins** | Go modules, `xcaddy build` | C modules, recompilation |\n| **Performance** | Fast, slightly slower than Nginx | Fastest for static files |\n| **Use case** | Modern apps, auto-HTTPS | Legacy, high-traffic static |\n\n## Commands\n\n```bash\ncaddy run                          # Foreground with Caddyfile in current dir\ncaddy start                        # Background daemon\ncaddy stop                         # Stop daemon\ncaddy reload                       # Reload config without downtime\ncaddy adapt --config Caddyfile     # Convert Caddyfile to JSON (debugging)\ncaddy validate --config Caddyfile  # Check for syntax errors\ncaddy hash-password                # Generate bcrypt hash for basicauth\ncaddy fmt --overwrite Caddyfile    # Format Caddyfile\n```\n\n## Guidelines\n\n- **Automatic HTTPS is the default** — don't disable it unless you have a specific reason. Caddy handles cert issuance, renewal, and OCSP stapling.\n- **Use `try_files` for SPAs** — `try_files {path} \u002Findex.html` serves the SPA shell for all routes, letting the frontend router handle them.\n- **Caddyfile for humans, JSON for automation** — Caddyfile is easier to read and maintain; JSON API is for programmatic management.\n- **Config API is live** — changes via the admin API take effect immediately without restart or reload.\n- **DNS challenge for wildcards** — wildcard certs require DNS-01 challenge. Install the appropriate DNS provider plugin via `xcaddy`.\n- **`encode gzip zstd`** on every site — compression is free performance. Zstandard is faster than gzip for modern clients.\n- **Health checks on reverse proxy** — always configure them for multi-backend setups to avoid routing to dead backends.\n- **`-Server` header** — remove it in production to avoid leaking server info.\n",{},"main","def8531e65114c0fca8fb8551c1871ee0eed705c","skills\u002FTerminalSkills\u002Fskills\u002Fcaddy",24,"https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub","https:\u002F\u002Fskillshub.wtf","https:\u002F\u002Fgithub.com\u002FComeOnOliver","AI & Blockchain Engineer\r\n","2026-06-24 22:07:19",{"source":7,"skillName":5,"commands":32,"prompt":42,"zipAvailable":43},[33,36,39],{"tool":34,"command":35},"npx","npx skills add ComeOnOliver\u002Fskillshub --skill caddy",{"tool":37,"command":38},"bunx","bunx skills add ComeOnOliver\u002Fskillshub --skill caddy",{"tool":40,"command":41},"pnpm","pnpm dlx skills add ComeOnOliver\u002Fskillshub --skill caddy","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002FTerminalSkills\u002Fskills\u002Fcaddy\u002FSKILL.md",true,[],[46,60,70,79,85,92],{"skillNo":47,"name":48,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":49,"categories":50,"keywords":56,"publishedAt":18},"01M6FKJN13GMG4KY57J3QD8GY5","model-hierarchy-skill","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzscole\u002Fmodel-hierarchy-skill\u002Fmodel-hierarchy-skill\u002FSKILL.md",[51],{"categoryNo":52,"categoryName":53,"taxonomyType":54,"taxonomyTypeDesc":55},"01JBSEEDCAT000000000000023","Skill与智能体开发","SCENARIO","使用场景",[57,58,59],"model","model hierarchy","model hierarchy skill",{"skillNo":61,"name":62,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":63,"categories":64,"keywords":66,"publishedAt":18},"01M6FKJJJ6GCAMR4PPPRD12M5X","zoom-mcp","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fzoom-mcp\u002FSKILL.md",[65],{"categoryNo":52,"categoryName":53,"taxonomyType":54,"taxonomyTypeDesc":55},[67,68,69],"MCP","zoom","zoom mcp",{"skillNo":71,"name":72,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":73,"categories":74,"keywords":75,"publishedAt":18},"01M6FKJE3KYT3KPEZMEEHYKA6K","zoom-apps-sdk","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fzoom-apps-sdk\u002FSKILL.md",[],[76,77,78,68],"sdk","zoom apps sdk","apps",{"skillNo":80,"name":81,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":82,"categories":83,"keywords":84,"publishedAt":18},"01M6FKJ9EDH9Q5VWDF8HAJRSP0","windows","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwindows\u002FSKILL.md",[],[81],{"skillNo":86,"name":87,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":88,"categories":89,"keywords":91,"publishedAt":18},"01M6FKJ666BEEFC3AE9GJ72Q93","whiteboard","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwhiteboard\u002FSKILL.md",[90],{"categoryNo":52,"categoryName":53,"taxonomyType":54,"taxonomyTypeDesc":55},[87],{"skillNo":93,"name":94,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":95,"categories":96,"keywords":97,"publishedAt":18},"01M6FKJ21WFCDGTJQ2Q91T9DVW","websockets","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwebsockets\u002FSKILL.md",[],[94]]