6ba788bb6e
- GatewayConnector: BackgroundService maintaining persistent WebSocket connection to OpenClaw Gateway with Bearer token auth from backend env only - IGatewayConnector: Interface exposing connection state, version info, health - Exponential backoff reconnect: 1s initial, max 5min, with jitter - Version pinning: RequiredVersion from config; fail-fast or warn on mismatch - Pre-flight HTTP version check before WebSocket connect - GatewayHealthController: GET /api/health/gateway with connection status - GatewayConnectorOptions: Configurable via GatewayConnector config section - Token never logged; read from Integrations:OpenClaw:Password/Token only - 16 tests: options defaults, config binding, health endpoint responses, connection states, DI registration, routing attributes
39 lines
898 B
JSON
39 lines
898 B
JSON
{
|
|
"ConnectionStrings": {
|
|
"Nexus": "Host=localhost;Port=5432;Database=nexus;Username=nexus;Password=nexus"
|
|
},
|
|
"Integrations": {
|
|
"OpenClaw": {
|
|
"BaseUrl": "http://127.0.0.1:18789",
|
|
"RequiredVersion": "",
|
|
"Token": "",
|
|
"Password": ""
|
|
},
|
|
"Ollama": {
|
|
"BaseUrl": "http://127.0.0.1:11434"
|
|
},
|
|
"Nvidia": {
|
|
"ApiKey": ""
|
|
}
|
|
},
|
|
"Jwt": {
|
|
"Issuer": "nexus",
|
|
"Audience": "nexus-web",
|
|
"AccessTokenExpirationMinutes": 15,
|
|
"RefreshTokenExpirationDays": 7
|
|
},
|
|
"AgentConfigPath": "/home/node/.openclaw/agents-sanitized.json",
|
|
"TaskRecovery": {
|
|
"StaleHours": 2,
|
|
"IntervalMinutes": 30
|
|
},
|
|
"GatewayConnector": {
|
|
"WebSocketPath": "/ws",
|
|
"ReconnectInitialDelayMs": 1000,
|
|
"ReconnectMaxDelayMs": 300000,
|
|
"FailFastOnVersionMismatch": true,
|
|
"FailFastOnMissingVersion": false
|
|
},
|
|
"AllowedHosts": "*"
|
|
}
|