talira

The Ultimate Server with Automatic HTTPS

open sourceApache-2.0self-hostablefree

Caddy is an open source web server and reverse proxy written in Go that obtains and renews TLS certificates for every site automatically, and serves even localhost and internal addresses over HTTPS with its own locally trusted CA. Its On-Demand TLS issues certificates during the handshake for customer-owned domains. The reverse proxy has load balancing, active and passive health checks, dynamic upstreams and retries, and the static file server supports compression, range requests and directory browsing. You configure it with a short Caddyfile or JSON through a RESTful admin API, and extend it with plugins compiled into the binary. Apache-2.0 licensed; its author Matt Holt maintains it through Dyanim, LLC, funded by sponsorships.

Ways to install

Problems it solves

  • I want HTTPS on my sites without setting up certbot and cron jobs for renewals
  • serve my customers' custom domains over HTTPS automatically in my white-label SaaS
  • replace a long Nginx config with a few readable lines for a reverse proxy
  • serve my local development sites over HTTPS on localhost with a trusted certificate
  • run my own internal certificate authority and ACME server for private services
  • load balance an API across several backends with health checks and retries
  • change my web server's routing at runtime through an API without restarting it
  • serve a static site with compression, range requests and a directory listing
  • run a PHP app from a single binary without php-fpm
  • share certificate management across a fleet of web servers using common storage

Features

  • automatic HTTPS: obtains and renews TLS certificates for all sites by default
  • On-Demand TLS for certificates issued during the TLS handshake
  • internal and localhost certificates from a self-managed, locally trusted CA
  • built-in ACME server for a private PKI, powered by Smallstep libraries
  • reverse proxy for HTTP, HTTPS, WebSockets, gRPC and FastCGI with load balancing and health checks
  • dynamic upstreams, retries, circuit breaking and graceful config reloads
  • static file server with on-the-fly or precompressed compression (including Zstandard), range requests, Etags and a file browser
  • Caddyfile and native JSON config; config adapters for YAML, TOML, NGINX and more
  • RESTful admin API for live config changes
  • modular architecture with plugins compiled into a static binary (xcaddy)
View 2 more
  • fleet certificate coordination through shared storage
  • FrankenPHP for serving PHP apps from the Caddy binary

Capabilities

Has an APIplan not known
Has a command line toolplan not known
Takes pluginsplan not known
Has official SDKsplan not known

Alternatives

The same job

These do what Caddy does.

  1. Nginx Proxy Manager Expose your services easily and securely
  2. nginx HTTP web server, reverse proxy, content cache, load balancer, TCP/UDP proxy server, and mail proxy server
  3. SWAG Secure Web Application Gateway: Nginx with Certbot and fail2ban in one container
  4. Zoraxy A general purpose HTTP reverse proxy and forwarding tool
  5. serve Static file serving and directory listing
  6. Traefik Proxy The Cloud Native Application Proxy

Compare Caddy with the top 3