33 lines
1.0 KiB
YAML
33 lines
1.0 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. CODEX_RPC_URL) > Default Constants
|
|
upstream:
|
|
codex_url: "ws://127.0.0.1:9001"
|
|
gemini_url: "ws://127.0.0.1:8791"
|
|
hermes_url: "ws://127.0.0.1:3920"
|
|
gateway_url: "ws://127.0.0.1:18789/"
|
|
opencode_url: "ws://127.0.0.1:38992"
|
|
|
|
openclaw_gateway:
|
|
max_active: 5
|
|
max_queued: 20
|
|
queue_timeout: "10m"
|
|
|
|
# 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.
|