selfhost.directory

The index of self-hostable projects — ranked, categorized and served with live updates.
Own your data and stop giving it to big tech.

Caddy logo

Self-host Caddy

v2.11.9

Fast web server with automatic HTTPS by default

ReleaseOpen SourceApache-2.0
Updated3 days ago
LanguageGo
Setup difficultyEasy
Stars
78 872
Port
80 (HTTP)
Docker
caddy
Install with Docker
Caddy screenshot 1Caddy screenshot 2

What is Caddy?

Caddy is a production-ready web server and reverse proxy that makes HTTPS automatic and mandatory. It obtains and renews TLS certificates from Let's Encrypt or ZeroSSL for public domains, and runs its own local CA for internal names and localhost. The server supports HTTP/1.1, HTTP/2, and HTTP/3 out of the box, and its modular architecture allows extending functionality through plugins. Configuration uses a simple Caddyfile format or native JSON with a REST API for dynamic updates. Caddy runs as a single static binary with no external dependencies on Linux, macOS, Windows, and BSD systems. It is used in production at scale, serving trillions of requests and managing millions of certificates.

Should you self-host Caddy?

Caddy scores 90/100 on selfhost.directory (how scoring works) and ranks #1 of 12 in Web Servers. It has 78 872 GitHub stars, +2 611 in the last 30 days.

It shipped 8 stable releases in the past year. The latest, v2.11.9, came out on 5 November 2026. New versions land roughly every 4 weeks.

Setup is easy: most people get it running in one sitting. An official Docker image is available. It is Apache-2.0-licensed and written mostly in Go.

Its closest alternative on selfhost.directory is NGINX (85/100, 32 075 stars). Caddy scores higher overall. See Caddy vs NGINX side by side.

Features

  • Cluster coordination
  • Compression (gzip, zstd, brotli)
  • Config Adapters
  • On-Demand TLS
  • Rate Limiting
  • Reverse Proxy
  • Static File Server
  • WebDAV
  • Zero-Downtime Reloads

Caddy README

How to install Caddy

Install Caddy with Docker

docker pull caddy

services: caddy: image: caddy: restart: unless-stopped ports: - "80:80" - "443:443" - "443:443/udp" volumes: - ./conf:/etc/caddy - ./site:/srv - caddy_data:/data - caddy_config:/config

volumes: caddy_data: caddy_config:

Official Docker image on Docker Hub; recommended Docker Compose configuration shown.

How to configure Caddy

  • CaddyfileSimplified, human-friendly configuration format for Caddy
  • JSON configNative JSON configuration format with REST API for dynamic updates
  • Config adaptersSupport for YAML, TOML, NGINX config, and other formats via adapters

Caddy releases & version history

@ Every self-hosted release, weekly

One Monday email with the week's stable releases across the directory.

More in Web Servers

Rate this project

Click to rate — no account needed.

0 comments

Posting as guest
Loading comments…