Skip to content

Update Matrix bridges documentation and implementation#2249

Open
aksrustagi wants to merge 2 commits into42wim:masterfrom
ABoringBusiness:claude/update-matrix-bridges-gIRfH
Open

Update Matrix bridges documentation and implementation#2249
aksrustagi wants to merge 2 commits into42wim:masterfrom
ABoringBusiness:claude/update-matrix-bridges-gIRfH

Conversation

@aksrustagi
Copy link

…oints

  • Update media download endpoint from deprecated /_matrix/media/v1/download/ to new /_matrix/client/v1/media/download/ (MSC3916)
  • Update thumbnail endpoint from deprecated /_matrix/media/r0/thumbnail/ to new /_matrix/client/v1/media/thumbnail/
  • Add Bearer token authentication for media downloads (required for v1.11+)
  • Add m.audio message type support in containsAttachment() for audio file bridging

…oints

- Update media download endpoint from deprecated /_matrix/media/v1/download/
  to new /_matrix/client/v1/media/download/ (MSC3916)
- Update thumbnail endpoint from deprecated /_matrix/media/r0/thumbnail/
  to new /_matrix/client/v1/media/thumbnail/
- Add Bearer token authentication for media downloads (required for v1.11+)
- Add m.audio message type support in containsAttachment() for audio file bridging
This adds a complete infrastructure for deploying Matrix bridges at scale:

Infrastructure:
- Docker Compose with Synapse, PostgreSQL, Redis, Nginx
- mautrix-slack, mautrix-telegram, mautrix-discord bridges
- SSL/TLS termination and rate limiting via Nginx

TypeScript API:
- User registration/auth with JWT tokens
- Bridge connection management (connect/disconnect/status)
- Credential encryption with AES-256-GCM
- Per-user Matrix server provisioning (PRO feature)
- Admin dashboard endpoints
- Webhook handlers for OAuth and bridge status

Database (Prisma):
- User accounts with plan tiers (FREE/STARTER/PRO/ENTERPRISE)
- Bridge connections with status tracking
- Per-user Matrix server records
- Audit logging

Features:
- Multi-user support (one bridge instance, many users)
- Secure credential storage with encryption at rest
- OAuth flow for Slack integration
- Plan-based bridge limits
- Admin tools for user/bridge management

Documentation:
- Complete README with architecture diagram
- Setup script for quick deployment
- API endpoint documentation
@selfhoster1312
Copy link

Hello, i believe this has been implemented in our community fork here: matterbridge-org#61

Not 100% sure about the audio file bridging. If something is missing there, feel free to open a new issue/PR over there :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants