Provides a bridge to the Xray-core gRPC API, offering a complete RESTful HTTP API interface.
3.4K
This project provides a complete RESTful HTTP API interface for the Xray-core instance's gRPC management API. It acts as a bridge, converting HTTP requests into gRPC calls, allowing services like Caddy to interact with Xray without needing a native gRPC client.
.
├── apiserver
├── bridge
├── tokenauth
├── xrayapi # Source code above
├── templates
│ └── subscription.jsonc.template # Subscription configuration template
├── .env.warp.example # Template substitution definitions
├── compose.yaml # Container orchestration - Sub-service execution
├── compose.override.yaml # Container override - Standalone execution
├── Dockerfile # Image generation config
├── API.md # REST API endpoint documentation
├── go.mod
├── go.sum
├── main.go
├── README-cn.md
└── README.md
xray-services. If you are not using that version, you will need to manually configure them in the current .env.warp.git clone https://github.com/Lanrenbang/xray-api-bridge.git
You can also download the Releases archive.
.env.warp and modify the necessary content as needed.echo -n "some secret" | docker secret create <secret_name> -
echo -n "some secret" | podman secret create <secret_name> -
Or run
docker/podman secret create <secret_name>directly and enter the secret when prompted.
Note:
<secret_name>must match the entries in.env.warpandcompose.yaml.
docker compose up -d
podman compose up -d
Tip:
- If Caddy is used as a frontend, this service will start as a sub-service. No action is needed here; please refer to caddy-services for details.
This project is distributed under the terms of the LICENSE file.
Content type
Image
Digest
sha256:427cdfcf5…
Size
13 MB
Last updated
5 days ago
docker pull lanrenbang/xray-api-bridge