28 lines
1.0 KiB
YAML
28 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. OPENCLAW_CODEX_URL) > Default Constants
|
|
upstream:
|
|
gateway_url: "ws://127.0.0.1:18789/"
|
|
codex_url: "http://127.0.0.1:9001/acp/rpc"
|
|
opencode_url: "http://127.0.0.1:38992/acp/rpc"
|
|
gemini_url: "http://127.0.0.1:8791/acp/rpc"
|
|
hermes_url: "http://127.0.0.1:3920/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.
|