docs: clean up CLAUDE.md redundancies and update collections

- Fix tenant count: 4 → 3 active websites (remove zweitmein.ng)
- Update blocks count: 42 → 43 (add ScriptSectionBlock)
- Update collections count: 40+ → 55+ (add 11 missing collections)
- Remove redundant TRUST_PROXY explanation (keep only in Security section)
- Remove duplicate DB access commands from multiple sections
- Remove hardcoded locale table count (was outdated)
- Add missing YouTube/Community collections to documentation

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Martin Porwoll 2026-01-26 17:34:23 +00:00
parent 0976a691ec
commit 9f575963ed

View file

@ -2,12 +2,11 @@
## Projektübersicht
Multi-Tenant CMS für 4 Websites unter einer Payload CMS 3.x Instanz:
Multi-Tenant CMS für 3 aktive Websites unter einer Payload CMS 3.x Instanz:
- porwoll.de
- complexcaresolutions.de
- complexcaresolutions.de (c2s)
- gunshin.de
- zweitmein.ng
## Tech Stack
@ -177,10 +176,6 @@ YOUTUBE_REDIRECT_URI=https://your-domain/api/youtube/callback
CRON_SECRET=your-64-char-hex # Auth für Cron-Endpoints
```
> **Wichtig:** `TRUST_PROXY=true` muss gesetzt sein wenn die App hinter einem Reverse-Proxy
> (wie Caddy) läuft. Ohne diese Einstellung funktionieren IP-basierte Sicherheitsfunktionen
> (Rate-Limiting, IP-Allowlists, Blocklists) nicht korrekt.
## PgBouncer Connection Pooling
PgBouncer läuft auf dem App-Server und pooled Datenbankverbindungen:
@ -278,10 +273,6 @@ pnpm test:security # Security Tests
pnpm test:access-control # Access Control Tests
pnpm test:coverage # Mit Coverage-Report
# Datenbank prüfen
# Verwende ./scripts/db-direct.sh psql oder:
PGPASSWORD="$DB_PASSWORD" psql -h 10.10.181.101 -U payload -d payload_db
# Backup
/home/payload/backups/postgres/backup-db.sh --verbose # Manuelles Backup
scripts/backup/setup-backup.sh # Backup-System einrichten
@ -430,16 +421,10 @@ Das System unterstützt Deutsch (default) und Englisch:
- **Admin UI:** `@payloadcms/translations` für DE/EN
- **Content:** Localization mit Fallback auf Deutsch
- **Datenbank:** 36 `_locales` Tabellen für lokalisierte Felder
- **Datenbank:** `_locales` Tabellen für lokalisierte Felder
- **API:** `?locale=de` oder `?locale=en` Parameter
- **Frontend:** Routing über `/[locale]/...`
```bash
# Locales in der Datenbank prüfen
# Verwende ./scripts/db-direct.sh psql oder:
PGPASSWORD="$DB_PASSWORD" psql -h 10.10.181.101 -U payload -d payload_db -c "\dt *_locales"
```
## URLs
- **Admin Panel:** https://pl.porwoll.tech/admin
@ -817,7 +802,7 @@ SELECT * FROM audit_logs ORDER BY created_at DESC LIMIT 10;
\dt -- Alle Tabellen
```
## Blocks Übersicht (42 Blocks)
## Blocks Übersicht (43 Blocks)
### Core Blocks
| Block | Slug | Beschreibung |
@ -892,6 +877,7 @@ SELECT * FROM audit_logs ORDER BY created_at DESC LIMIT 10;
| SeriesDetailBlock | series-detail-block | Serien-Einzelseite mit Hero |
| VideoEmbedBlock | video-embed-block | YouTube/Vimeo Embed mit Privacy Mode |
| FeaturedContentBlock | featured-content-block | Kuratierte Mixed-Content Sammlung |
| ScriptSectionBlock | script-section-block | YouTube-Script Abschnitte |
### HeroSliderBlock Features
@ -926,7 +912,7 @@ Vollwertiger Hero-Slider mit:
- Separate Mobile-Höhe
- Content-Breite
## Collections Übersicht (40+ Collections)
## Collections Übersicht (55+ Collections)
### Core Collections
| Collection | Slug | Beschreibung |
@ -1014,7 +1000,17 @@ Vollwertiger Hero-Slider mit:
| YouTubeContent | youtube-content | Videos + Shorts mit Kommentaren |
| YtSeries | yt-series | Serien mit Branding (Logo, Farben, Playlist) |
| YtNotifications | yt-notifications | Handlungsbedarf-System |
| MetaAccounts | meta-accounts | Facebook/Instagram OAuth-Verbindungen |
| YtScriptTemplates | yt-script-templates | Skript-Vorlagen für Videos |
| YtBatches | yt-batches | Video-Batches für Produktions-Planung |
| YtChecklistTemplates | yt-checklist-templates | Checklisten-Vorlagen für Video-Produktion |
| YtMonthlyGoals | yt-monthly-goals | Monatliche YouTube-Ziele |
| YtTasks | yt-tasks | YouTube-Aufgaben-Verwaltung |
| SocialAccounts | social-accounts | Meta/Social OAuth-Verbindungen |
| SocialPlatforms | social-platforms | Plattform-Konfigurationen |
| CommunityInteractions | community-interactions | Kommentare & Interaktionen |
| CommunityRules | community-rules | Automatische Antwort-Regeln |
| CommunityTemplates | community-templates | Antwort-Vorlagen |
| ReportSchedules | report-schedules | Geplante Community-Reports |
### System Collections
| Collection | Slug | Beschreibung |
@ -1334,4 +1330,4 @@ ssh payload@162.55.85.18
### Scripts & Backup
- `scripts/backup/README.md` - Backup-System Dokumentation
*Letzte Aktualisierung: 17.01.2026 (Git Workflow hinzugefügt)*
*Letzte Aktualisierung: 26.01.2026 (Redundanzen bereinigt, Collections aktualisiert)*