mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-14 22:41:09 +02:00
feat(matrix): add self-hosted Matrix infrastructure for GDPR compliance
Add complete Matrix/Synapse setup as Telegram bot alternative: Docker configuration: - Synapse homeserver (port 8008) with PostgreSQL backend - Element Web client (port 8087) with ManaCore branding - DSGVO-compliant data retention policies (1-365 days) - Prometheus metrics endpoint for monitoring Config files: - docker/matrix/homeserver.yaml - Synapse configuration - docker/matrix/log.config.yaml - Logging with rotation - docker/matrix/element-config.json - Element Web settings Scripts & docs: - scripts/mac-mini/setup-matrix.sh - One-time initialization - Updated health-check.sh with Matrix services - Updated MAC_MINI_SERVER.md with Matrix documentation https://claude.ai/code/session_01E3r5aFW3YLAhEJfsL2ryhv
This commit is contained in:
parent
28637dffc2
commit
3aa9e8608d
7 changed files with 490 additions and 0 deletions
|
|
@ -71,6 +71,8 @@ Cloudflare Tunnel (cloudflared)
|
|||
| Todo | https://todo.mana.how |
|
||||
| Calendar | https://calendar.mana.how |
|
||||
| Clock | https://clock.mana.how |
|
||||
| Matrix (Synapse) | https://matrix.mana.how |
|
||||
| Element Web | https://element.mana.how |
|
||||
|
||||
## SSH-Zugang
|
||||
|
||||
|
|
@ -260,6 +262,8 @@ curl -s -X POST "https://api.telegram.org/bot${TELEGRAM_BOT_TOKEN}/sendMessage"
|
|||
| manacore-calendar-web | Calendar Frontend |
|
||||
| manacore-clock-backend | Clock API |
|
||||
| manacore-clock-web | Clock Frontend |
|
||||
| manacore-synapse | Matrix Homeserver |
|
||||
| manacore-element | Element Web Client |
|
||||
|
||||
### Nützliche Docker-Befehle
|
||||
|
||||
|
|
@ -597,6 +601,35 @@ launchctl stop com.manacore.telegram-ollama-bot
|
|||
launchctl start com.manacore.telegram-ollama-bot
|
||||
```
|
||||
|
||||
## Matrix (DSGVO-konformes Messaging)
|
||||
|
||||
Matrix ist eine DSGVO-konforme Alternative zu Telegram für Bot-Kommunikation.
|
||||
|
||||
### Komponenten
|
||||
|
||||
| Service | Port | Beschreibung |
|
||||
|---------|------|--------------|
|
||||
| Synapse | 8008 | Matrix Homeserver |
|
||||
| Element Web | 8087 | Web-Client |
|
||||
|
||||
### Setup
|
||||
|
||||
```bash
|
||||
# Matrix initialisieren
|
||||
./scripts/mac-mini/setup-matrix.sh
|
||||
|
||||
# Services starten
|
||||
docker compose -f docker-compose.macmini.yml up -d synapse element-web
|
||||
|
||||
# Admin-User erstellen
|
||||
docker exec -it manacore-synapse register_new_matrix_user \
|
||||
-c /data/homeserver.yaml http://localhost:8008 -a
|
||||
```
|
||||
|
||||
### Dokumentation
|
||||
|
||||
Siehe [MATRIX_SELF_HOSTING.md](./MATRIX_SELF_HOSTING.md) für detaillierte Anleitung.
|
||||
|
||||
## Chronologie der Einrichtung
|
||||
|
||||
1. **Docker Setup** - PostgreSQL, Redis, App-Container
|
||||
|
|
@ -608,3 +641,4 @@ launchctl start com.manacore.telegram-ollama-bot
|
|||
7. **Email Notifications** - Redundante Benachrichtigung
|
||||
8. **Ollama** - Lokale LLM-Inferenz (Gemma 3 4B)
|
||||
9. **Telegram Ollama Bot** - Chat-Interface für Ollama
|
||||
10. **Matrix Synapse** - DSGVO-konformes Messaging
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue