Skip to content
Back to skills

Caddy Server

ASecurity

Write clean Caddyfile configurations for automatic TLS, reverse proxies, compression, and HTTP security headers

  • 5 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 30, 2026
developmentapibackendsecurity

Works with

  • api

Security analysis

A100/100

Scanned November 30, 2026

npx -y skills add AdityaaaTiwari/ANVIL --skill caddy-server --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Caddy Server?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Caddy Server
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/adityaaatiwari-caddy-server-anvil/badge)](https://www.skillsdirectory.com/skills/adityaaatiwari-caddy-server-anvil)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: caddy-server
description: Write clean Caddyfile configurations for automatic TLS, reverse proxies, compression, and HTTP security headers
---

<!-- Generated by `anvil plugin build` from catalog/. Edit the catalog, not this file. -->

# 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.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.