Auto-commit: 2026-05-31 21:59

This commit is contained in:
OpenClaw
2026-05-31 21:59:22 +00:00
parent 36c49d2799
commit 397c2588de
35 changed files with 2916 additions and 6 deletions

View File

@@ -175,6 +175,19 @@ Add whatever helps you do your job. This is your cheat sheet.
- `scripts/commit-and-sync.sh` git commit + push + sync zu TrueNAS
- Workflow: Nach Datei-Änderungen → `bash scripts/commit-and-sync.sh`
### Schach-App (lara-schach-live) Testumgebung
- **Repo:** `greggy/lara-schach-live`
- **Deploy-Pfad:** `/var/www/test/html/`
- **Frontend:** Statische Dateien via Apache (Port 80/6427)
- **Backend:** `python3 server.py` (Port 8111, Stockfish-Analyse)
- **Stockfish:** `/usr/games/stockfish`
- **Log:** `/tmp/lara-schach-server.log`
- **Deploy-Workflow:**
1. `cd /tmp && rm -rf lara-schach-live && git clone https://git.home.kies-media.de/greggy/lara-schach-live.git`
2. `rsync -av --delete --exclude='.git' /tmp/lara-schach-live/ /var/www/test/html/`
3. Backend neustarten: `kill $(pgrep -f 'python3 server.py'); sleep 1; cd /var/www/test/html && STOCKFISH_PATH=/usr/games/stockfish nohup python3 server.py >> /tmp/lara-schach-server.log 2>&1 &`
4. URL posten: http://178.104.150.0:6427/
### Landingpage Testumgebung
- **Server:** Apache auf dem OpenClaw-Server (lokal)
- **DocumentRoot:** `/var/www/test/html`
@@ -186,6 +199,86 @@ Add whatever helps you do your job. This is your cheat sheet.
- ⚠️ **Nach jedem Deploy:** URL als klickbarer Link im Chat posten: http://178.104.150.0:6427/
- **⚠️ Wichtig:** Feature-Branches werden VOR dem Merge auf die Testumgebung deployed. Nach PR-Merge ist kein erneuter Deploy nötig main ist dann automatisch auf dem gleichen Stand.
### CloudPanel / Hetzner Server (188.245.242.194)
- **SSH:** `ssh -i /root/.ssh/hetzner-cp-kies-media root@188.245.242.194`
- **CloudPanel URL:** https://cp.kies-media.de/ (Port 8443)
- **CloudPanel CLI:** `clpctl` (v6.0.8)
- **Hetzner API Key:** `$HETZNER_API_KEY` in `.bashrc`
- **Hetzner Server-ID:** 62963324 (cpx21, 3 Cores, 4GB RAM, 80GB Disk)
- **SSH Key:** `/root/.ssh/hetzner-cp-kies-media` (ed25519)
- **Provider:** Hetzner Cloud
- **Hostname:** Cloudpanel
- **OS:** Ubuntu, Kernel 6.8.0-57-generic (x86_64)
- **Disk:** 38 GB (61% belegt)
- **RAM:** 4 GB
#### SSH Hardening (25.05.2026)
- **Config:** `/etc/ssh/sshd_config.d/99-hardening.conf`
- PasswordAuthentication: no
- PubkeyAuthentication: yes
- PermitRootLogin: prohibit-password
- MaxAuthTries: 10
- MaxSessions: 10
- X11Forwarding: no
- AllowTcpForwarding: no
- AllowAgentForwarding: no
#### UFW Firewall
- SSH (22): Nur 91.137.60.185 (Martin), 178.104.150.0, 2a01:4f8:c2c:ece1::1 (OpenClaw)
- HTTP (80): Anywhere
- HTTPS (443/tcp + udp): Anywhere
- CloudPanel (8443): Anywhere
- MySQL (3306): 172.68.159.220
#### Fail2Ban
- Aktiv, Jail: sshd
- 3 Fehlversuche → 1h Ban (bantime=3600)
- Ban via UFW
#### Hetzner Cloud API
- SSH-Key OpenClaw: ID 112794687
- SSH-Key Docker-SSH: ID 28435737
- Firewall "Firewall für Cloudpanel": ID 2055950
- ⚠️ NICHT rescue-mode aktivieren ohne Reboot-Plan (Deaktivierung allein reicht nicht, Server bootet sonst ins Rescue)
### Jellyfin / Filme & Serien
- **Episoden-/Filmtitel immer bei TMDB (themoviedb.org) nachschlagen** nicht Wikipedia, nicht Perplexity
- Grund: Jellyfin nutzt TMDB als primäre Metadatenquelle → TMDB-Titel = das was Jellyfin anzeigt
- URL: https://www.themoviedb.org/tv/655-star-trek-the-next-generation
### TrueNAS Filme-Suche
- **Immer via SSH** auf TrueNAS suchen: `ssh root@192.168.8.112 "ls /mnt/Main/Filme/..."`
- SMB-Zugriff mit openclaw-User funktioniert nicht für alle Shares
- Filme liegen in: `/mnt/Main/Filme/` (Kategorie-Unterordner)
- Serien in Season-Unterordnern, Episoden als .mkv/.mp4/.m4v
### Download-Quellen (Warez)
**Filme / Serien:**
- https://nima4k.org/
- https://serienfans.org/
- https://serienjunkies.org/
- https://nox.to/
- https://warez.cx/
**PC-Spiele:**
- https://warez.cx/
**Hörbücher:**
- https://www.rssing.com/
### OpenBookshelf (Audiobooks)
- **URL:** https://audiobooks.home.kies-media.de/
- **API-Key:** `$OPENBOOKSHELF_API_KEY` in `.bashrc`
- API-Key in `.bashrc` speichern und über Umgebungsvariable nutzen
### TrueNAS GPU-Regeln
- **NIEMALS** den `xe`-Treiber manuell per `echo ... > /sys/bus/pci/drivers/xe/bind` oder `drivers_probe` an eine Intel Arc GPU binden **das crasht den TrueNAS-Server (Kernel Panic/Reset)!** Schon mehrfach passiert.
- Stattdessen: vfio-pci Bindung entfernen + Server normal rebooten, damit der Treiber beim Boot sauber lädt.
- Oder TrueNAS-eigene GPU-Zuweisung (WebUI) nutzen.
- Die Intel Arc B70 Pro hat PCI-ID `8086:e223` auf Bus `0000:83:00.0`.
### Exec-Timeouts (Konventionen)
- Kurze CLI-Abfragen: **150 Sekunden**