DEV Community

Alex Spinov
Alex Spinov

Posted on

Caddy Has a Free Web Server — Automatic HTTPS Without Configuration

Caddy is a modern web server that automatically provisions and renews HTTPS certificates — zero configuration needed.

What You Get for Free

  • Automatic HTTPS — Let's Encrypt certificates, auto-renewed
  • HTTP/3 — QUIC support out of the box
  • Reverse proxy — load balancing, health checks, retries
  • File server — serve static files with one command
  • API-configurable — change config via REST API, no restarts
  • Caddyfile — human-readable config format
  • Plugins — DNS providers, auth, rate limiting
  • Single binary — no dependencies, easy deployment

Quick Start

# Serve current directory with HTTPS
caddy file-server --domain example.com
# That's it. HTTPS certificate obtained automatically.
Enter fullscreen mode Exit fullscreen mode
# Caddyfile — reverse proxy
example.com {
    reverse_proxy localhost:3000
}
# Save as Caddyfile, run: caddy run
# HTTPS is automatic. Zero SSL configuration.
Enter fullscreen mode Exit fullscreen mode

Why Developers Switch from Nginx

Nginx requires manual SSL setup, certbot crons, and cryptic configs:

  • Zero SSL config — HTTPS just works, certificates auto-renewed
  • Readable config — Caddyfile vs nginx.conf complexity
  • API-driven — update config without restarts via REST API
  • Memory-safe — written in Go, not C (no buffer overflow risks)

A DevOps engineer spent 2 hours configuring Nginx + Let's Encrypt + cron renewal for a new domain. With Caddy: 3 lines in Caddyfile, HTTPS working in 30 seconds.

Need Custom Data Solutions?

I build production-grade scrapers and data pipelines for startups, agencies, and research teams.

Browse 88+ ready-made scrapers on Apify → — Reddit, HN, LinkedIn, Google, Amazon, and more.

Custom project? Email me: spinov001@gmail.com — fast turnaround, fair pricing.

Top comments (0)