caddyfile-generation

Generate Caddyfile configurations for static sites and reverse proxies.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/nixopus/agent --skill caddyfile-generation
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: caddyfile-generation
Source: https://github.com/nixopus/agent/tree/main/skills/caddyfile-generation
Command: npx skills add https://github.com/nixopus/agent --skill caddyfile-generation

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill generates correct Caddyfile configurations for static sites and reverse proxies, removing guesswork and reducing setup time.

Core Features & Use Cases

  • SPA fallback routing to serve index.html for non-file routes
  • Cache headers and asset optimization for hashed assets
  • Compression with gzip and zstd
  • Redirects and security headers for production deployments
  • Complete production-ready templates tailored to static hosting

Quick Start

Generate a production-ready Caddyfile at the project root that enables SPA routing, caching, compression, redirects, and security headers for a static site.

Frequently Asked Questions about caddyfile-generation

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I configure SPA fallback routing in a Caddyfile?▼

Long-term asset caching in a Caddyfile targets hashed assets with immutable cache headers. This skill generates configurations that apply optimal cache-control directives for hashed files, reducing redundant downloads for returning visitors.

Does Caddy support both gzip and zstd compression for static sites?▼

Caddy supports both gzip and zstd compression for static sites. This skill produces a Caddyfile enabling both compression algorithms, minimizing file sizes and improving transfer speeds for static hosting deployments.

What security headers should I add to a production Caddyfile?▼

Production Caddyfiles require security headers to protect against common web vulnerabilities. This skill generates a complete Caddyfile including necessary security headers alongside redirects, caching, and compression for static site deployments.

Can I use a single Caddyfile for reverse proxies and static site hosting?▼

A single Caddyfile can configure both reverse proxies and static site hosting. This skill generates robust Caddyfile configurations supporting multi-environment deployments, combining static asset routing with reverse proxy setups.