Harden onion boot flow and deepen site surfaces

Add persistent onion key backup and restore, improve startup resilience, and flesh out the major site verticals with richer navigation, search coverage, and operator documentation.

Made-with: Cursor
This commit is contained in:
drjones
2026-04-07 21:35:52 -07:00
parent 52432dccfa
commit 78a071ba02
162 changed files with 21692 additions and 39 deletions

18
lib/cyberluxEntry.ts Normal file
View File

@@ -0,0 +1,18 @@
/** Mirrors nginx `X-Cyberlux-Node` — which .onion hostname the user entered on. */
import {
CYBERLUX_ENTRY_VALUES,
type CyberluxEntry,
} from "@/lib/onionRoutes.generated";
export { CYBERLUX_ENTRY_VALUES, type CyberluxEntry };
export const CYBERLUX_ENTRY_COOKIE = "cyberlux-entry";
export function parseCyberluxEntry(
raw: string | undefined | null,
): CyberluxEntry {
if (raw && (CYBERLUX_ENTRY_VALUES as readonly string[]).includes(raw)) {
return raw as CyberluxEntry;
}
return "hub";
}