File size: 1,543 Bytes
b2d5d3a
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
07e9e9f
b2d5d3a
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# Einswarm Node-RED — Betriebsanleitung

**Space:** https://huggingface.co/spaces/2Btainment/node-red  
**App (neuer Tab):** https://2btainment-node-red.hf.space  
**Zeitzone:** Europe/Berlin

---

## 1. Zugang

- Space ist **privat** (HF-Gate).
- Direct-URL im **neuen Tab** öffnen, bei Hugging Face eingeloggt.
- nginx entfernt `X-Frame-Options` / CORP und setzt `frame-ancestors` für huggingface.co.

## 2. Login (Admin)

Secrets (Settings → Variables and secrets):

| Secret | Bedeutung |
|--------|-----------|
| `NODE_RED_ADMIN_USER` | Benutzer (Standard: `admin`) |
| `NODE_RED_ADMIN_PASSWORD` | Passwort — wird beim Start gehasht |
| `NODE_RED_CREDENTIAL_SECRET` | Schlüssel für Flow-Credentials — **nicht ändern** |

1. https://2btainment-node-red.hf.space öffnen  
2. Mit Admin-User/Passwort anmelden  
3. Flows bauen → **Deploy**

## 3. Persistenz

- `/data` wenn beschreibbar: Flows + Settings  
- Ohne Volume: Daten **ephemeral** bei Rebuild/Sleep  
- Regelmäßig **Export** (Menü → Export)

## 4. Einswarm-UI

Schwarz/Gold-Theme, Logo im Header, Buy-Me-a-Coffee (statischer Link unten rechts, kein Fremd-JS).

## 5. Webhooks / HTTP-in

HTTP-in Nodes lauschen unter der Direct-URL. CORS ist für HF-Origins geöffnet.

## 6. Troubleshooting

| Symptom | Aktion |
|---------|--------|
| `ERR_BLOCKED_BY_RESPONSE` | Direct-URL nutzen; nginx sollte XFO strippen |
| Login schlägt fehl | Secret `NODE_RED_ADMIN_PASSWORD` prüfen, Space neu starten |
| Flows weg nach Restart | Export/Import; Volume oder Backup |