Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Caddy Server?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/adityaaatiwari-caddy-server)
---
description: Write clean Caddyfile configurations for automatic TLS, reverse proxies, compression, and HTTP security headers
profile: standard
tags: caddy, proxy, tls, web
---
# Caddy server
Use when configuring Caddy as a reverse proxy, static file server, or TLS terminator.
## Reverse proxy and TLS
- Let Caddy manage ACME certificates automatically by matching explicit hostnames rather than wildcard catch-all TLS blocks without DNS challenges.
- Configure `reverse_proxy` health checks (`health_uri`, `health_interval`), `header_up`, and transport timeouts (`read_timeout`, `dial_timeout`) for multi-instance backends.
- Handle static SPAs cleanly using `root * /srv` + `try_files {path} /index.html` + `file_server`.
## Security and caching
- Enable `encode zstd gzip` and attach standard headers (`X-Content-Type-Options`, `Referrer-Policy`, HSTS only after verifying HTTPS works end-to-end).
- Disable or bind Caddy's admin API (`admin off` or `localhost:2019`) appropriately in production containers.
## Verify
Run `caddy fmt --check` and `caddy validate --config Caddyfile`, then verify live certificate issuance and headers cleanly.