Docker images for NaiveProxy with multi-architecture support (x86_64 and ARM64).
| Image | Description |
|---|---|
rwecho/naiveproxy | NaiveProxy 客户端 |
rwecho/caddy-forwardproxy | Caddy + forward_proxy (服务端) |
docker pull rwecho/naiveproxy:latest
Create config file:
mkdir -p ~/naive-config
cat > ~/naive-config/config.json <<'EOF'
{
"listen": "socks://0.0.0.0:1080",
"proxy": "https://user:[email protected]:443"
}
EOF
Run client:
```bash
docker run -d \
--name naiveproxy \
--restart unless-stopped \
-v ~/naive-config:/etc/naive \
-p 1080:1080 \
rwecho/naiveproxy:latest
docker pull rwecho/caddy-forwardproxy:latest
Create directories:
mkdir -p ~/naive-server/{caddy,html}
Create Caddyfile (~/naive-server/caddy/Caddyfile):
your-domain.com {
tls [email protected]
route {
forward_proxy {
basic_auth your_user your_password
hide_headers
}
file_server {
root /var/www/html
}
}
}
Create a simple HTML page (~/naive-server/html/index.html):
<!DOCTYPE html>
<html>
<head><title>Welcome</title></head>
<body><h1>Welcome!</h1></body>
</html>
Run server:
docker run -d \
--name caddy \
--restart unless-stopped \
-v ~/naive-server/caddy:/etc/caddy \
-v ~/naive-server/html:/var/www/html \
-p 80:80 \
-p 443:443 \
rwecho/caddy-forwardproxy:latest
version: '3.8'
services:
caddy:
image: rwecho/caddy-forwardproxy:latest
container_name: caddy
restart: unless-stopped
ports:
- "80:80"
- "443:443"
volumes:
- ./caddy:/etc/caddy
- ./html:/var/www/html
{
"listen": "socks://0.0.0.0:1080",
"proxy": "https://user:password@your-server:443"
}
For more configuration options, see NaiveProxy documentation.
your-domain.com {
tls [email protected]
route {
forward_proxy {
basic_auth your_user your_password
hide_headers
}
file_server {
root /var/www/html
}
}
}
| Variable | Default | Description |
|---|---|---|
CONFIG_PATH | /etc/naive/config.json | Path to config file |
latest - Latest stable versionVERSION - Specific version (e.g., 143.0.7499.109-2)This project uses GitHub Actions for:
Set these secrets in your GitHub repository:
DOCKERHUB_USERNAME - Your Docker Hub usernameDOCKERHUB_TOKEN - Your Docker Hub access tokenYou can also trigger a manual build with a specific version:
# Build client
docker build -t naiveproxy:local .
# Build server
docker build -f Dockerfile.server -t caddy-forwardproxy:local .
This project is licensed under the MIT License. NaiveProxy is licensed under its own terms.
Content type
Image
Digest
sha256:69eeab2f4…
Size
36.9 MB
Last updated
5 months ago
docker pull rwecho/naiveproxy