Caddy is a lightweight, general-purpose web server for Windows, Mac, Linux, BSD and Android. It is a capable alternative to other popular and easy to use web servers. (@caddyserver on Twitter)
The most notable features are HTTP/2, Let's Encrypt support, Virtual Hosts, TLS + SNI, and easy configuration with a Caddyfile. In development, you usually put one Caddyfile with each site. In production, Caddy serves HTTPS by default and manages all cryptographic assets for you.
User Guide
Server Types
- DNS - DNS server core (see https://coredns.io)
- HTTP - HTTP server core; everything most sites need
Directives/Middleware
- awslambda - Gateways requests to AWS Lambda functions
- cors - Easily configure Cross-Origin Resource Sharing
- expires - Add expiration headers to assets
- filemanager - Manage files on your server with a GUI
- filter - Filter response body contents
- git - Deploy your site with git push
- hugo - Static site generator with admin interface
- ipfilter - Block or allow clients based on IP origin
- jsonp - Wrap JSON responses as JSONP
- jwt - Authorization with JSON Web Tokens
- locale - Detect locale of client
- mailout - SMTP client with REST API and PGP encryption
- minify - Minify static assets on-the-fly
- multipass - Authorization by email
- prometheus - Prometheus metrics integration
- ratelimit - Limit rate of requests
- realip - Restore original IP when behind a proxy
- search - Site search engine
- upload - Upload files
DNS Providers
- cloudflare
- digitalocean
- dnsimple
- dyn
- gandi
- googlecloud
- linode
- namecheap
- ovh
- rfc2136
- route53
- vultr