Deployment
Local deployment
Section titled “Local deployment”Binary
Section titled “Binary”- Download the release binary from GitHub Releases.
- Prepare config file:
cp gproxy.example.toml gproxy.toml- Start service:
./gproxyAfter startup, open:
- Admin UI:
http://127.0.0.1:8787/
Docker
Section titled “Docker”Build image:
docker build -t gproxy:local .Run container:
docker run --rm -p 8787:8787 \ -e GPROXY_HOST=0.0.0.0 \ -e GPROXY_PORT=8787 \ -e GPROXY_ADMIN_KEY=your-admin-key \ -e GPROXY_DSN='sqlite://app/data/gproxy.db?mode=rwc' \ -v $(pwd)/data:/app/data \ gproxy:localCloud deployment
Section titled “Cloud deployment”Zeabur
Section titled “Zeabur”Current cloud template support is Zeabur.
- Template file:
zeabur.yaml - Prebuilt image:
ghcr.io/leenhawk/gproxy:latest
Recommended settings:
GPROXY_ADMIN_KEY: requiredGPROXY_HOST:0.0.0.0GPROXY_PORT:8787GPROXY_DATA_DIR:/app/data- Persist volume at
/app/data
Optional:
GPROXY_DSN(external database or custom sqlite path)GPROXY_PROXY(upstream egress proxy)RUST_LOG(log level)