- Shell 76.7%
- Python 23.3%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
| bridges | ||
| coturn | ||
| docs | ||
| examples | ||
| host | ||
| scripts | ||
| synapse | ||
| systemd | ||
| .env.example | ||
| .gitignore | ||
| compose.yaml | ||
| LICENSE | ||
| README.md | ||
| REVIEW-NOTES.md | ||
| SECURITY.md | ||
Self-Hosted Matrix Stack
A sanitized, reproducible reference for running Synapse, PostgreSQL, Coturn and five Mautrix bridges on a small ARM64 server. It also includes the operational jobs used to recover services after boot, monitor bridge logins and NVMe health, update Coturn behind dynamic IPv4, create verified NAS backups, test database restores quarterly, and answer direct messages sent to a retired Matrix account.
This repository contains source and example configuration only. It does not contain a production database, media, bridge sessions, encryption stores, access tokens, appservice tokens, signing keys, sync cursors, device IDs, real domains, addresses, accounts, rooms, email addresses, NAS paths or SSH keys.
Included
compose.yaml: PostgreSQL and Synapsebridges/: Telegram, WhatsApp, Signal, Discord and LinkedIn bridge examplescoturn/: TURN container and configuration examplesynapse/: homeserver, logging and appservice examplesscripts/: recovery, monitoring, backup, restore and retired-account autoreplysystemd/: services and timers for those scriptshost/: optional ZRAM exampledocs/: architecture, setup, security and operations notes
Important
Every CHANGE_ME_*, example.com and documentation address must be replaced before deployment. Generate new appservice registrations, Synapse secrets, signing keys, database passwords, TURN secrets and a dedicated backup SSH key. Never reuse values from another installation.
Run ./scripts/validate.sh before committing or publishing changes.
License
Original code in this repository is available under GPL-2.0-or-later. Third-party containers and software keep their own licenses.