feat(ui): Sitzungs-Cookie hinter HTTPS-Proxy als Secure; README zum Betrieb hinter NPM oder tailscale serve

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GmHhg3bfByVgQ9z7CGCSGc
This commit is contained in:
2026-11-16 07:39:44 +01:00
parent 422680631e
commit 99b8dd5832
2 changed files with 54 additions and 6 deletions

View File

@ -128,6 +128,8 @@ curl -s http://127.0.0.1:8080/v1/chat/completions \
-d '{"model":"bonsai","messages":[{"role":"user","content":"Hallo"}]}'
```
**HTTPS über einen Proxy (ab 0.1.7, noch nicht geprüft):** Nexus selbst spricht nur HTTP. Für HTTPS (und die spätere PWA) gehört ein Proxy davor, zum Beispiel Nginx Proxy Manager mit Zertifikat oder `tailscale serve`. Dann lauscht Nexus auf der LAN-Adresse, die Firewall lässt nur den Proxy durch, und der Proxy braucht für Streams und lange Ladezeiten `proxy_buffering off; proxy_read_timeout 600s; proxy_send_timeout 600s;`. Schickt der Proxy `X-Forwarded-Proto: https`, setzt Nexus das Sitzungs-Cookie `Secure`. Eine Zugriffsliste im Proxy (nur LAN und Tailscale) verhindert, dass ein öffentlicher DNS-Eintrag Nexus ins Internet stellt.
Mit dem OpenAI-SDK: `base_url="http://<gateway>:8080/v1"` und der Key als `api_key`.
## Tests