Sign inSign up

daocn/caddy-naive

By daocn

Updated 18 days ago

High-performance Caddy v2 server with forwardproxy (NaïveProxy) for linux/amd64 & linux/arm64.

Image
Networking
Security
0

170

daocn/caddy-naive repository overview

Caddy with NaïveProxy (Multi-Arch)

A lightweight, high-performance **Caddy v2** server pre-compiled with **`klzgrad/forwardproxy@naive`** module, supporting both **`linux/amd64`** and **`linux/arm64`** (Apple Silicon,

Oracle ARM, AWS Graviton) architectures out of the box.

---

## ✨ Features

- **Multi-Architecture**: Native pre-built images for both `amd64` (x86_64) and `arm64` (aarch64).
- **NaïveProxy Built-in**: Full support for HTTP/2 & HTTP/3 forward proxying with packet length padding.
- **Probe Resistance**: Built-in defense against active probing, falling back to legitimate web/static pages.
- **Zero Configuration Build**: No local Go toolchain or cross-compilation required.
- **Ultra Lightweight**: Based on `caddy:alpine`, minimal image size (~35 MB compressed per architecture).

---

## 🚀 Quick Start (Docker Compose)

Create a `docker-compose.yml`:

```yaml
version: "3.8"

services:
  caddy:
    image: daocn/caddy-naive:latest
    container_name: caddy-naive
    restart: always
    network_mode: host
    volumes:
      - ./Caddyfile:/etc/caddy/Caddyfile:ro
      - ./html:/var/www/html:ro
      - caddy_data:/data
      - caddy_config:/config

volumes:
  caddy_data:
  caddy_config:
Example Caddyfile
{
    admin off
}

:443, example.com {
    tls [email protected]

    route {
        forward_proxy {
            basic_auth myuser mypassword
            hide_ip
            hide_via
            probe_resistance
        }
        root * /var/www/html
        file_server
    }
}

Run in background:

docker compose up -d

──────

📋 Volume & Persistence

• /data: ACME certificates, private keys, and runtime storage (DO NOT lose this volume). • /config: Caddy autosave configuration. • /etc/caddy/Caddyfile: Your server routing configuration. • /var/www/html: Camouflage static website files. ──────

🏷️ Tags

• latest, v2.11.4: Latest stable Caddy 2.11.4 with Naïve forwardproxy on Alpine.

Tag summary

Content type

Image

Digest

sha256:b10a0fbd4

Size

39.3 MB

Last updated

18 days ago

docker pull daocn/caddy-naive