Caddy Proxy Manager

Caddy Proxy Manager documentation

Caddy Proxy Manager (CPM) is a web UI for Caddy, made for homelabs. It works like NGINX Proxy Manager: you add your domains in the browser and CPM takes care of the Caddy configuration and HTTPS certificates.

Pages

Page Read this when you want to...
Installation Install CPM and log in for the first time
Configuration Change environment variables, storage mode or Settings
Using CPM Add hosts, headers, snippets, error pages, view logs and history
Plugins Use DNS providers, CrowdSec, rate limiting, GeoIP and more
Security Check that your setup is safe
Troubleshooting Fix a problem

How it works

  1. You make a change in the web UI, for example a new proxy host.
  2. CPM builds a complete Caddyfile from its database.
  3. Caddy checks the new config. If Caddy rejects it, the change is not saved and you see the error.
  4. CPM loads the config into Caddy through the Caddy Admin API. Caddy requests certificates automatically.
  5. Every loaded version is kept in Audit Logs, so you can go back to an earlier version.

If Caddy is offline, the change is still saved with a warning. Click Re-apply once Caddy is back.

Browser  -->  CPM (web UI + SQLite)  -->  Caddy Admin API (port 2019)  -->  Caddy serves your sites
                     ^                                                          |
                     +------------------- logs (port 9514) ---------------------+
Menu What you find there
Proxy Hosts Forward a domain to a service on your network
Redirect Hosts Send a domain to another address, or return an error code
File Servers Serve static files from a folder
Options Headers, Snippets, Plugins (per host) and Error Pages
Plugins Turn Caddy plugins on and configure them
Audit Logs All config versions, with differences and rollback
Logs Live system and access logs
Settings Global settings, Users (admins only) and Caddyfile (import and preview)

Words used in these docs

Word Meaning
Host One entry in CPM: one or more domains with a destination
Source The domain visitors use, for example app.example.com
Destination Where Caddy sends the traffic, for example 192.168.1.10:8080
Header set / snippet A reusable piece of Caddy config you can switch on per host
Admin API The control port of Caddy (2019) that CPM uses to load the config