Caddy Proxy Manager

Caddy Proxy Manager

Reverse proxy management for Caddy, made for homelabs

Manage reverse proxies, redirects, file servers and HTML websites from a web UI, with free SSL certificates handled by Caddy.

Proxy hosts

Forward a domain to any service on your network, with websockets, headers and snippets per host.

Redirects and file servers

Send a domain elsewhere, return an error code, or serve static files and HTML websites from a folder.

Automatic HTTPS

Caddy requests and renews certificates on its own. Wildcards work through DNS plugins such as Cloudflare.

Snippets and plugins

Reusable headers and snippets, plus CrowdSec, rate limiting, GeoIP and DNS providers built in.

History and rollback

Every config version is kept with a diff. Import an existing Caddyfile and roll back in one click.

Live logs and status

Follow system and access logs in real time, see which hosts are up, and give every user an account.

How it works

CPM talks to Caddy through its Admin API, stores everything in SQLite and generates a Caddyfile that it pushes to Caddy.

  1. You make a changeFor example, add a new proxy host in the web UI.
  2. Build config...CPM generates a complete Caddyfile from the database.
  3. Validate...Caddy checks the config. If it is rejected, nothing is saved and you see the error.
  4. Load...Caddy loads the config through the Admin API. Every version lands in the Audit Logs for a rollback.
  5. Online!Your proxy host is live on HTTPS, with a certificate that Caddy requests and renews.

Quick start

Save one of these as docker-compose.yml, run docker compose up -d and open http://<host>:8080 to create the admin account.

CPM and Caddy in one container with all plugins built in. The simplest setup and the right choice if you start fresh.

services:
  cpm:
    image: ghcr.io/r0gger/cpm:latest
    container_name: cpm
    restart: unless-stopped
    ports:
      - "80:80"
      - "443:443"
      - "443:443/udp"
      - "8080:8080"
    volumes:
      - cpm_data:/data
      - caddy_config:/config
      - caddy_etc:/etc/caddy
      - file_server:/file_server
volumes:
  cpm_data:
  caddy_config:
  caddy_etc:
  file_server:

Full installation guide →