caddy-modern-config
2
总安装量
2
周安装量
#65500
全站排名
安装命令
npx skills add https://github.com/sraloff/gravityboots --skill caddy-modern-config
Agent 安装分布
opencode
2
claude-code
2
github-copilot
2
codex
2
kimi-cli
2
gemini-cli
2
Skill 文档
Caddy Modern Config
When to use this skill
- Configuring Caddy as a web server or reverse proxy.
- Setting up local HTTPS.
- Deploying PHP/Python apps with Caddy.
1. Caddyfile Basics
- Syntax:
domain { directives }. - Auto-HTTPS: Enabled by default for any host that looks like a domain.
2. Reverse Proxy
- Python/Node:
example.com { reverse_proxy localhost:3000 }
3. PHP (FastCGI)
- Directives: Use
php_fastcgipreset.example.com { root * /var/www/site/public php_fastcgi unix//run/php/php8.3-fpm.sock file_server }
4. Security
- Headers: Add basic security headers easily.
header { Strict-Transport-Security "max-age=31536000;" X-Content-Type-Options "nosniff" }