About Caddy
Caddy is an Apache-2.0 web server written in Go. It gets and renews certificates for your domains automatically, speaks HTTP/1.1, HTTP/2 and HTTP/3, and proxies to backends in a few lines of Caddyfile.
That makes it a natural front door on a CloudSat VPS: point a domain at the server, name it in the Caddyfile, and HTTPS is handled. A JSON admin API allows live config changes.
On Ubuntu, Caddy runs as the caddy systemd service with its config in /etc/caddy/Caddyfile.
What you get with Caddy
- Automatic HTTPS with certificate renewal
- HTTP/1.1, HTTP/2 and HTTP/3
- Reverse proxy with load balancing and health checks
- Static file server with compression
- JSON config API for live changes
Caddy use cases
- Put HTTPS in front of a self-hosted app in minutes
- Serve a static site with zero certificate chores
- Route several subdomains to different containers
After you deploy Caddy
- When the server is up (Running in the console), SSH in as root and open
/etc/caddy/Caddyfile. - Replace the placeholder site with your domain, for example a block containing
reverse_proxy localhost:3000. - Point the domain's DNS at the server, then apply with
systemctl reload caddy; Caddy fetches the certificate itself. - If a certificate request fails, follow the logs with
journalctl -u caddy.
Caddy ports
Open these in your firewall if you use one: 80/tcp HTTP and ACME challenges, 443/tcp HTTPS, 443/udp HTTP/3.
Caddy FAQ
What does Caddy need for automatic HTTPS?
Two things: a domain with DNS records resolving to the server, and inbound ports 80 and 443 reachable from the internet. Caddy then requests and renews certificates on its own.
Where are Caddy's logs?
With the official package, Caddy runs under systemd and writes to the journal; read it with journalctl -u caddy --no-pager.
Disclaimer. The Caddy project has no affiliation with CloudSat and does not endorse it. Names and logos belong to their owners and appear only to identify the software.