Sign inSign up

xxoommd/caddy-naive

By xxoommd

•Updated about 2 years ago

xcaddy build with github.com/klzgrad/forwardproxy@naive

Image
Networking
Developer tools
Web servers
0

1.1K

xxoommd/caddy-naive repository overview

⁠前置条件

  1. 设置DNS,保证域名解析正确

  2. 服务器允许80和443访问

  3. 提供Caddyfile

Caddyfile示例:

:443, nv.example.com
tls [email protected]
  route {
    forward_proxy {
    basic_auth USERNAME PASSWORD
    hide_ip
    hide_via
    probe_resistance
    # upstream socks5://127.0.0.1:40000 # 使用cloudflare warp-cli作为上游服务器
  }
  respond nv.example.com!
}

⁠Usage:

1.直接运行

docker run --name caddy --network=host -v $PWD/Caddyfile:/Caddyfile caddy-naive

2.Docker compose示例

services:
  caddy:
    image: caddy-naive:cf-latest
    container_name: caddy
    volumes:
      - $PWD/Caddyfile:/etc/caddy/Caddyfile
    network_mode: "host"

Tag summary

Content type

Image

Digest

sha256:f257e6526…

Size

31.8 MB

Last updated

about 2 years ago

docker pull xxoommd/caddy-naive