HUB
Sign inSign up

perteus/caddy-ui

By perteus

β€’Updated about 15 hours ago

Web UI for managing Caddy reverse proxy - rules, SSL certificates, snippets. Built with Claude AI.

Image
Networking
Security
Developer tools
0

10K+

perteus/caddy-ui repository overview

⁠CPM - Caddy Proxy Manager

CPM Logo

πŸš€ Lightweight web UI for managing Caddy reverse proxy
Wildcard SSL β€’ Docker Auto-Discovery β€’ One-click rule creation

Version Go Image Size Platforms


β πŸ“Έ Screenshots

CPM Dashboard
Dashboard β€” backend status, alerts, certificates, quick actions

CPM Proxy Rules
Proxy Rules β€” backend status, tags, wildcard certificates

CPM Dashboard (dark mode)
Modern theme in dark mode

πŸ“· More screenshots⁠ β€” rule editor, certificates, Docker discovery, logs, settings; Modern and Classic themes


⁠✨ Features

FeatureDescription
πŸ“Š DashboardSystem overview, stats, alerts, backend status (running / stopped / reachable), quick actions
πŸ”€ Proxy RulesVisual editor for reverse proxy rules, container picker
πŸ“₯ Caddyfile ImportImport existing site blocks (lossless, with backup and rollback)
πŸ” Wildcard SSLManage wildcard certificates with DNS challenge
βš™οΈ SnippetsCloudflare DNS, security headers, rate limiting
πŸ“œ CertificatesSSL overview with expiration warnings, bulk renewal
πŸ“„ LogsAccess log of requests per rule (status, latency, client) with 24 h stats, plus parsed Caddy logs with level filter and search
πŸ‘₯ Multi-UserRole-based access (Admin, Editor, Viewer)
πŸ’Ύ BackupFull config backup & restore
🏠 Internal-onlyRestrict sites to internal network only
🎨 ThemesClassic or Modern (light/dark, accent colours); works on phones and tablets
🌐 i18nEnglish, Czech & Korean
πŸ“‹ Templates17+ pre-configured service templates
🐳 Docker Auto-DiscoveryContainers per Docker host, paired with rules by host IP + published port, one-click rule creation
🧩 ModulesExtend CPM from the admin UI: Docker (local) and Dockhand (containers on all your Docker hosts)

β πŸš€ Quick Start

docker pull perteus/caddy-ui:latest
docker pull perteus/caddy-ui:3.7.0
⁠Docker Compose
version: '3.8'
services:
  caddy:
    image: serfriz/caddy-cloudflare:latest
    container_name: caddy_proxy
    environment:
      - CF_API_TOKEN=${CF_API_TOKEN}
    ports:
      - "80:80"
      - "443:443"
    volumes:
      - ./caddy-config:/etc/caddy
      - ./caddy-data:/data

  cpm:
    image: perteus/caddy-ui:3.7.0
    container_name: cpm
    ports:
      - "8501:8501"
    environment:
      - CONTAINER_NAME=caddy_proxy
      - DEFAULT_IP=192.168.1.100
    volumes:
      - ./caddy-config:/caddy-config
      - ./caddy-data:/caddy-data
      - /var/run/docker.sock:/var/run/docker.sock
⁠Synology NAS

On Synology add privileged: true for Docker socket access.

cpm:
  image: perteus/caddy-ui:3.7.0
  privileged: true
  volumes:
    - /volume1/docker/caddy-config:/caddy-config
    - /volume1/docker/caddy-data:/caddy-data
    - /var/run/docker.sock:/var/run/docker.sock

β βš™οΈ Environment Variables

VariableDefaultDescription
PORT8501HTTP port
CONTAINER_NAMEcaddyCaddy container name
DEFAULT_IP192.168.1.1Default target IP
THEMEclassicDefault UI theme (classic or modern)
TRUSTED_PROXIESprivate,loopbackReverse proxies whose X-Forwarded-* headers are trusted (none to disable)
TRUSTED_ORIGINS-Extra origins allowed to submit forms, e.g. https://cpm.example.com
CF_API_TOKEN-Cloudflare API token (for wildcard SSL)

β πŸ“ Version History

VersionNotes
3.7.0πŸ“ Access log per rule β€” requests, status and response times for each rule; Fiber v3
3.6.0βš“ Dockhand module β€” backend status and discovery for containers on all Docker hosts
3.5.1πŸ”’ Security patch β€” Go 1.26.10, fasthttp, compress, x/crypto (31 known vulnerabilities fixed)
3.5.0🧩 Modules, backend status for IP rules, discovery per host, host IP detection fix
3.4.1πŸ” Certificate backups & restore, renewal that really renews, Restart Caddy button
3.4.0🎨 Modern theme, Caddyfile import, logs viewer, mobile layout, role enforcement & security hardening
3.3.1πŸ”’ Security patch β€” Go 1.26.4 (CVE-2026-42504, CVE-2026-27145, CVE-2026-42507)
3.3.0🌐 i18n refactor β€” PO/MO format, Korean language, plural support infrastructure
3.2.0🐳 Docker Auto-Discovery β€” automatic container detection, multi-host support
3.1.3πŸ”’ Security patch β€” CVE fixes, moved to moby/moby/client
3.1.2πŸ”’ Security fixes, CSRF, race condition, path traversal
3.1.1πŸ” Internal-only restrictions, Go 1.26, multi-platform (amd64/arm64)
3.1.0πŸ” Wildcard refactor, new architecture
3.0.2πŸ› Wildcard TLS fix, parser fix, 405 fix
3.0.1πŸ” Wildcard SSL, migration tools, UI improvements
3.0.0πŸŽ‰ Complete Go rewrite (794MB β†’ 6MB)
2.xPython version (deprecated)
⁠v3.7.0 - Access log per rule
  • βœ… Access log β€” turn it on in Settings β†’ Logs; Caddy writes every request to /data/cpm-logs/access.log (Caddy data volume, no compose change), rotated by size, optional IP masking
  • βœ… Logs β†’ Requests β€” requests per rule with status, response time, size and client, filters and 24 h stats; πŸ“ on each rule opens its requests
  • βœ… Do not log a rule or selected paths (e.g. /health*), works for wildcard rules too
  • πŸ”§ Fiber v3, CSRF that works behind Caddy (TRUSTED_PROXIES / TRUSTED_ORIGINS), flash messages in any language
  • πŸ› Rules search and tag filter, "Download backup", password-change message, return to the previous page on a non-standard port
⁠v3.6.0 - Dockhand module
  • βœ… Dockhand module β€” reads containers of all environments managed by Dockhand⁠ (local host and remote hosts via Hawser), so backend status and Docker discovery cover every machine
  • βœ… Host IP per environment from Dockhand's Public IP (or ID=IP in the module settings)
  • βœ… Containers reported by several modules are shown once
  • πŸ§ͺ Test builds of the develop branch: perteus/caddy-ui:develop (never latest)
⁠v3.5.0 - Modules & backend status
  • βœ… Modules β€” enable, configure and disable extensions in Settings β†’ Modules; settings live in caddy-config/modules.json (docs/modules.md⁠)
  • βœ… Backend status that works with IP rules β€” 192.168.1.10:8080 is matched to the container publishing port 8080 on that host; other targets are checked by connecting to the port
  • βœ… Docker discovery per host β€” containers are listed under the host they run on, rules are created with host IP + published port
  • πŸ› Host IP detection no longer returns the container's own address (172.x)
  • ⚠️ After upgrading, set the Docker host IP in Settings β†’ Modules β†’ Docker (local)
⁠v3.4.1 - Certificate backups & Restart Caddy
  • βœ… Certificate backups β€” Renew/Delete move certificates to a backup instead of deleting them; restore from the Certificates page
  • βœ… Renewal that really renews β€” Caddy is restarted (a reload kept serving the old certificate from memory)
  • βœ… Restart Caddy button on the dashboard, with config validation first
  • πŸ“¦ Offline packages (amd64/arm64) and ghcr.io/tomaszmek/cpm multi-arch image on GitHub Releases⁠
⁠v3.4.0 - Modern theme, Caddyfile import & security hardening
  • βœ… Modern theme β€” optional redesign with light/dark mode and accent colours (Classic stays default)
  • βœ… Caddyfile import β€” lossless import of existing site blocks with backup and rollback
  • βœ… Logs viewer, bulk certificate renewal, backend status, container picker
  • βœ… Phones & tablets β€” off-canvas menu, list–detail settings
  • βœ… Security β€” roles enforced, API requires login + CSRF, import/restore path checks
  • ⚠️ Upgrade notes β€” API scripts must log in; new passwords need 8+ characters
  • πŸ“‹ Full notes: RELEASE_NOTES.md⁠

⁠v3.2.0 - Docker Auto-Discovery
  • βœ… Auto-Discovery β€” automatic detection of running containers
  • βœ… Multi-host support β€” monitor multiple Docker hosts
  • βœ… Smart pairing β€” match existing proxy rules with containers
  • βœ… One-click rule creation β€” pre-filled from discovered containers
  • βœ… Local IP autodetection β€” detects host IP automatically

⁠v3.1.3 - Security Patch
  • βœ… CVE fixes β€” bump golang.org/x/crypto 0.45.0 β†’ 0.52.0
  • βœ… Docker SDK migration β€” github.com/docker/docker β†’ github.com/moby/moby/client (permanent fix)
  • βœ… Multi-platform β€” native amd64 + arm64

⁠🧩 Modules

Enable and configure extensions in Settings β†’ Modules β€” no restart, settings are stored in caddy-config/modules.json.

ModuleWhat it does
🐳 Docker (local)Containers from the mounted Docker socket. Set Docker host IP to your NAS address.
βš“ DockhandContainers of all Dockhand⁠ environments (local and remote hosts via Hawser). Dockhand URL + API token; host IPs from each environment's Public IP.

CPM then shows for every proxy rule whether its backend container is running (with container name and host), or whether the target port responds. Docs: docs/modules.md⁠


⁠πŸ§ͺ Test builds

perteus/caddy-ui:develop (newest) and perteus/caddy-ui:develop-<commit> are built from the development branch on every change β€” for testing only, never tagged latest.



β πŸ™ Acknowledgments


β πŸ“„ License

MIT License


CPM - Caddy Proxy Manager
Made with ❀️ for home labs

Tag summary

Content type

Image

Digest

sha256:d3c0f2b4c…

Size

7.3 MB

Last updated

11 days ago

docker pull perteus/caddy-ui