feat: Add Brain Server proxy for centralized knowledge base - #25
Merged
Conversation
- Add brain-proxy.ts: HTTP proxy to Brain Server (49.13.158.176:5001) - Add brain/client.ts: BrainClient HTTP adapter - Update index.ts: Conditional proxy mode via BRAIN_SERVER_URL env - Update ecosystem.config.cjs: Add BRAIN_SERVER_URL config - Add start-backend.sh: Wrapper script with env vars for PM2 Architecture: - Cloud-Agents (178.156.178.70:3001) proxies /api/brain/* to Brain-Server - Brain-Server (49.13.158.176:5001) stores all knowledge base data centrally - Fallback to local mode if BRAIN_SERVER_URL not set 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
|
@sentry review |
This was referenced Jan 1, 2026
Closed
Closed
dsactivi-2
pushed a commit
that referenced
this pull request
Jan 27, 2026
* Initial plan * feat: Add in-memory fallback for rate-limiting middleware - Implement automatic fallback to in-memory rate limiting when Redis is unavailable - Add comprehensive logging to indicate mode switches (Redis → In-memory) - Add 14 unit tests for fallback scenarios including: - Redis connection failures - Missing Redis client - Rate limit enforcement with in-memory store - Header validation - Custom key generators - Window expiration - All rate-limit tests passing (14 passing, 14 skipped requiring real Redis) Co-authored-by: den-is9186 <257160258+den-is9186@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: den-is9186 <257160258+den-is9186@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Changes
Architecture
Test plan
🤖 Generated with Claude Code