xworkmate-bridge/example/config.yaml

27 lines
1.1 KiB
YAML

# Example configuration for xworkmate-bridge public ingress and provider sync.
#
# Usage:
# BRIDGE_CONFIG_PATH=config.yaml ./xworkmate-bridge serve
# Upstream provider endpoints
# Priority: YAML > Environment Variable (e.g. OPENCLAW_CODEX_URL) > Default Constants
upstream:
gateway_url: "https://xworkmate-bridge.svc.plus/gateway/openclaw/"
codex_url: "https://xworkmate-bridge.svc.plus/acp-server/codex/acp/rpc"
opencode_url: "https://xworkmate-bridge.svc.plus/acp-server/opencode/acp/rpc"
gemini_url: "https://xworkmate-bridge.svc.plus/acp-server/gemini/acp/rpc"
# Legacy/Reference structure (Normally managed via code constants or environment)
bridge:
listenAddr: 127.0.0.1:8787
# Token should be set via BRIDGE_AUTH_TOKEN env for security
allowedOrigins:
- https://xworkmate.svc.plus
- http://localhost:*
- http://127.0.0.1:*
notes:
- The bridge reads its own auth token from BRIDGE_AUTH_TOKEN.
- Upstream URLs can include sub-paths which will be preserved during WebSocket handshake.
- Multi-agent and Single-agent modes will use these endpoints to delegate tasks.