xcaddy build with github.com/klzgrad/forwardproxy@naive
1.1K
设置DNS,保证域名解析正确
服务器允许80和443访问
提供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!
}
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"
Content type
Image
Digest
sha256:f257e6526…
Size
31.8 MB
Last updated
about 2 years ago
docker pull xxoommd/caddy-naive