e1c2ba96e2
- Q4 → Obsidian vault is the Notizen/ folder in Nextcloud (multi-device sync). Nexa reads via WebDAV using the existing NC_APP_PASSWORD — no filesystem mount. Ignore list pinned: .copilot/, .copilot-index/, .smart-env/, .caldav-sync/, assets/ (routed to Phase-3.2 visual queue), Templates/, BMO/, Excalidraw/. Index target: Notizen/**/*.md. - Q5 → canonical name is Karakeep; legacy Zoraxy alias hoarder.nuclide.systems kept for compatibility. - Q13 → Octoprint container is intentionally powered down most of the time. Phase-5 monitoring must skip names matching octoprint*. Reflected in docs/10 monitoring table and CLAUDE.md. - Q14 → Homepage Zoraxy widget config error; cosmetic, dropped from open questions and from docs/12 optimization list. - Q18 → SAIA does proxy embeddings but rate limit is 10 msg/min, unusable for ingest. TEI stays in Phase 3.1. - docs/12: stale items removed (Octoprint, Zoraxy widget, generic Immich vector idea); added new ones derived from the Obsidian discovery (plugin embedding collision, notify_push upgrade path, assets/ size note). - docs/04 integration matrix updated to describe Obsidian-via-Nextcloud read path explicitly. - docs/09 step-4 credentials list collapses NC Tasks / Calendar / WebDAV onto a single app password.
4.1 KiB
4.1 KiB
12 — Optimization Opportunities
Observations from the running infrastructure. Each item is independent — accept, defer, or reject.
For Nexa directly
- Reuse, don't redeploy. The earlier
DEPLOYMENT.mdwould have spun a second Memos / n8n / Qdrant. The current homelab already runs all three. The new 09-deployment treats these as pre-existing — keeps the config minimal and avoids port collisions. - Use LiteLLM virtual keys per logical caller. Today there's one SAIA key. Issuing one key per workflow (
nexa-router,nexa-embed,nexa-digest) lets you set different per-key rate/cost limits and disable a single workflow without rotating everything. - Use n8n's credential objects, never inline secrets. The current workflows under
nexa-core/n8n-workflows/phase-1/*.jsonshould be reviewed — if any headerAuthorizationis hardcoded, replace with credential references before importing. - Centralise system alerts on a single ntfy topic (
nexa.system). Backrest, Proxmox notifications, n8n failure-webhook and the Octoprint Exited state all go to that topic; one Memos system memo aggregates them. - Defer graph DB until Phase 3.4. Qdrant alone covers ~80% of the assistant's daily value. The graph DB is justified once you actually need dependency analysis or critical-path queries.
- Auto-export n8n workflows.
nexa-core/scripts/backup_workflows.shalready exists. Schedule it inside the n8n container (cron) and let itgit commit && git push— this is the cheapest disaster recovery.
For the wider homelab (out of scope but worth noting)
- AI gateway naming.
ai.nuclide.systemscurrently proxies LobeHub (a chat UI on:3210), while the LiteLLM API lives on:4000. For Nexa, point n8n directly at LiteLLM (http://192.168.1.40:4000over the docker net — no public TLS hop needed) to save latency and isolate from UI restarts. - MCP servers consolidation. Dozzle shows
crawl4ai-mcp,markitdown-mcp,papersearch-mcprunning individually. They're all MCP servers — Nexa Phase-3 could pull from these via LiteLLM's MCP support to enrich the embedding pipeline (e.g. fetch + markitdown a Karakeep link before embedding). - Backup the n8n SQLite file — Backrest covers
/home/node/.n8nif added; today the only "backup" is the workflow JSON which omits credentials and execution history. - Pocket-ID SSO in front of n8n would let you remove n8n basic-auth and unify session management across the whole stack. One-time setup, large UX win.
- Vaultwarden as the secret store for Nexa secrets (
SAIA_API_KEY,MEMOS_API_KEY, …) — read at bootstrap via the Bitwarden CLI from inside the docker host. Removes the need for a.envon disk. - AdGuard as DNS-based control plane. Since AdGuard is the resolver for the LAN, you can rewrite
*.nuclide.systemsto192.168.1.4(Zoraxy) internally and avoid a hairpin via the WAN — already the case if AdGuard rewrite rules are set, worth verifying. - Disk usage on LXC 104 is 47.7 % (Proxmox). Monitor; n8n execution logs and Dozzle history are the usual culprits. Setting
EXECUTIONS_DATA_PRUNE=trueandEXECUTIONS_DATA_MAX_AGE=168(7 days) on n8n keeps it bounded. - Obsidian plugin embeddings collide with Nexa's. The vault already runs Obsidian Copilot (
.copilot,.copilot-index) and Smart Connections / Smart Composer (.smart-env, ~13 MB). They each embed the same notes into their own vector stores — three indexes for the same content. Nexa's value is the cross-source index (memos + mail + obsidian + RDF graph), so it has to embed independently, but the plugins could be retired once Nexa's RAG is satisfying. Track separately, decide later. - Real-time Obsidian sync via
notify_push. Phase 3.1 polls WebDAV every 15 min (Q4 resolution). Once that works, swap to Nextcloud'snotify_pushapp for sub-second propagation. One-line workflow change in n8n. assets/is 186 MB of binaries in the Obsidian vault — worth a glance to confirm it's mostly images (Phase-3.2 visual queue) rather than something that should live in Nextcloud Files proper.