← 返回 Skills 市场
1004
总下载
2
收藏
7
当前安装
1
版本数
在 OpenClaw 中安装
/install caddy
功能描述
Configure Caddy as a reverse proxy with automatic HTTPS and simple Caddyfile syntax.
使用说明 (SKILL.md)
Caddy Configuration Rules
Automatic HTTPS
- Caddy provisions SSL certificates automatically — don't manually configure Let's Encrypt unless you have specific needs
- Domain must resolve to the server publicly for HTTP challenge — use DNS challenge for internal/wildcard certs
- Ports 80 and 443 must be free — Caddy needs both even for HTTPS-only (80 handles ACME challenges and redirects)
- Let's Encrypt has rate limits — use staging CA during testing to avoid hitting production limits
Caddyfile Syntax
- Indentation is significant — blocks are defined by indentation, not braces in shorthand
- Site blocks need a space before the opening brace:
example.com {notexample.com{ - Use
caddy fmt --overwriteto fix formatting — catches most syntax issues - Validate before applying:
caddy validate --config /etc/caddy/Caddyfile
Reverse Proxy
- Caddy adds
X-Forwarded-For,X-Forwarded-Proto,X-Forwarded-Hostautomatically — don't add them manually - WebSocket works out of the box — no special configuration needed
- Load balancing is automatic with multiple backends — default is random, use
lb_policyto change - Passive health checks remove failed backends automatically
Docker Networking
- Use container names as hostnames:
reverse_proxy container_name:3000 - Caddy and backends must share a Docker network — default bridge doesn't support DNS resolution
- For Docker Compose, service names work as hostnames when on the same network
Configuration Management
- Use
caddy reloadnot restart — reload applies changes without dropping connections - Config changes are atomic — if new config fails validation, old config stays active
- Test without applying:
caddy adapt --config Caddyfileshows parsed JSON output
Certificate Storage
- Certificates stored in
~/.local/share/caddyby default — preserve this across reinstalls - For Docker, mount volumes for
/dataand/config— losing these means re-requesting all certificates - Multiple Caddy instances need shared storage or will fight over certificates
Debugging
- Enable debug logging: add
debugas first line in global options block - Check certificate status in
/data/caddy/certificates/directory - Common issue: DNS not pointing to server yet — certificates fail silently until domain resolves
Security Headers
- Caddy doesn't add security headers by default — add X-Frame-Options, X-Content-Type-Options explicitly
- HSTS is automatic when serving HTTPS — no manual configuration needed
Performance
- Handles thousands of concurrent connections without tuning
- HTTP/3 available with
servers { protocols h1 h2 h3 } - Compression automatic for text content
安全使用建议
This skill is a safe, instruction-only reference for configuring Caddy. Before using it: ensure the caddy binary on your system is from an official/trusted source; be aware Caddy needs permission to bind ports 80/443 (may require root or CAP_NET_BIND_SERVICE); back up /data and /config if you rely on persisted certificates; use Let's Encrypt staging for testing to avoid rate limits; review any commands the agent executes (caddy validate/format/reload) to confirm they match your system paths and intentions.
功能分析
Type: OpenClaw Skill
Name: caddy
Version: 1.0.0
The skill bundle is benign. The `_meta.json` file contains standard metadata for the 'caddy' skill. The `SKILL.md` file provides comprehensive documentation and best practices for configuring Caddy as a reverse proxy. It explicitly declares the `caddy` binary as a requirement and contains no executable code, prompt injection attempts, or instructions that would lead to data exfiltration, unauthorized execution, or other malicious activities by an AI agent. All mentioned commands and file paths are standard for Caddy operation.
能力评估
Purpose & Capability
Name/description (Caddy reverse proxy + HTTPS) align with the requirements and instructions: the SKILL.md only references Caddy-specific commands, config paths (/etc/caddy/Caddyfile, /data, /config, ~/.local/share/caddy) and Docker networking relevant to running Caddy. No unrelated binaries, services, or credentials are requested.
Instruction Scope
The runtime instructions stay within the scope of configuring and debugging Caddy: advice on ACME, formatting/validation commands (caddy fmt, caddy validate, caddy adapt), reload vs restart, certificate storage, Docker networking, and debugging paths. It does reference local filesystem paths and ports 80/443, but these are expected and necessary for Caddy operation and not extraneous data-collection or exfiltration steps.
Install Mechanism
Instruction-only skill with no install spec or code to fetch. This is low-risk: nothing will be written or executed by the skill itself beyond instructing the agent to use the existing caddy binary that the environment must provide.
Credentials
No environment variables, credentials, or unrelated config paths are requested. The only required binary is caddy, which is proportionate to the stated functionality of configuring Caddy.
Persistence & Privilege
The skill is not marked always:true and does not request persistent system modifications. It only advises on using system paths that Caddy normally uses; it does not instruct the agent to modify other skills or global agent settings.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install caddy - 安装完成后,直接呼叫该 Skill 的名称或使用
/caddy触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release
元数据
常见问题
Caddy 是什么?
Configure Caddy as a reverse proxy with automatic HTTPS and simple Caddyfile syntax. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 1004 次。
如何安装 Caddy?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install caddy」即可一键安装,无需额外配置。
Caddy 是免费的吗?
是的,Caddy 完全免费(开源免费),可自由下载、安装和使用。
Caddy 支持哪些平台?
Caddy 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(linux, darwin, win32)。
谁开发了 Caddy?
由 Iván(@ivangdavila)开发并维护,当前版本 v1.0.0。
推荐 Skills