{"vsa":"0.9.0","type":"StaticManifest","manifestVersion":"1.0.0","viewId":"docs-v0-1-production","title":"Production · Docs v0.1","requires":[{"name":"zone.text","version":"^1.0.0"}],"optional":[{"name":"render.dom","version":"^1.0.0"},{"name":"projection.slots","version":"^1.0.0"}],"trustDomain":"self","dataClass":"public","zones":[{"zoneId":"l-1","kind":"text","label":"Luxel"},{"zoneId":"l-2","kind":"text","label":"Docs"},{"zoneId":"l-3","kind":"text","label":"Demo"},{"zoneId":"l-4","kind":"text","label":"Numbers"},{"zoneId":"l-5","kind":"text","label":"Security"},{"zoneId":"l-6","kind":"text","label":"Releases"},{"zoneId":"l-7","kind":"text","label":"Roadmap"},{"zoneId":"l-8","kind":"text","label":"Blog"},{"zoneId":"l-9","kind":"text","label":"Español"},{"zoneId":"t-10","kind":"text","label":"Docs v0.1"},{"zoneId":"l-11","kind":"text","label":"Search documentation →"},{"zoneId":"t-12","kind":"text","label":"Start"},{"zoneId":"l-13","kind":"text","label":"Overview"},{"zoneId":"l-14","kind":"text","label":"Getting started"},{"zoneId":"l-15","kind":"text","label":"Primeros pasos"},{"zoneId":"l-16","kind":"text","label":"Concepts"},{"zoneId":"t-17","kind":"text","label":"Guide"},{"zoneId":"l-18","kind":"text","label":"Views"},{"zoneId":"l-19","kind":"text","label":"Screens"},{"zoneId":"l-20","kind":"text","label":"Testing screens"},{"zoneId":"l-21","kind":"text","label":"Forms"},{"zoneId":"l-22","kind":"text","label":"Collections"},{"zoneId":"l-23","kind":"text","label":"Charts"},{"zoneId":"l-24","kind":"text","label":"Polling"},{"zoneId":"l-25","kind":"text","label":"Languages"},{"zoneId":"l-26","kind":"text","label":"Server"},{"zoneId":"l-27","kind":"text","label":"Sessions"},{"zoneId":"l-28","kind":"text","label":"Production"},{"zoneId":"l-29","kind":"text","label":"Tooling"},{"zoneId":"l-30","kind":"text","label":"From React or Next.js"},{"zoneId":"t-31","kind":"text","label":"Reference"},{"zoneId":"l-32","kind":"text","label":"Typical React mistakes"},{"zoneId":"l-33","kind":"text","label":"API"},{"zoneId":"l-34","kind":"text","label":"Diagnostics"},{"zoneId":"t-35","kind":"text","label":"Security"},{"zoneId":"l-36","kind":"text","label":"Security guide"},{"zoneId":"l-37","kind":"text","label":"Threat model"},{"zoneId":"l-38","kind":"text","label":"Claims and evidence"},{"zoneId":"t-39","kind":"text","label":"Project"},{"zoneId":"l-40","kind":"text","label":"Known gaps"},{"zoneId":"l-41","kind":"text","label":"Changelog"},{"zoneId":"l-42","kind":"text","label":"Index of all sections"},{"zoneId":"t-43","kind":"text","label":"Luxel v0.1 · Guide"},{"zoneId":"t-44","kind":"text","label":"Production"},{"zoneId":"t-45","kind":"text","label":"This page is the short version: the commands and the environment variables. The full checklist, with the balancer, rolling restarts, key rotation, logout and logs, is in docs/production.md. Read it before your first deploy."},{"zoneId":"t-46","kind":"text","label":"Nothing here claims that Luxel is production ready. It lists what luxel-host needs and what it refuses."},{"zoneId":"t-47","kind":"text","label":"Build and verify"},{"zoneId":"t-48","kind":"text","label":"In your deploy pipeline:"},{"zoneId":"t-49","kind":"text","label":"npm run build                          # luxel build && luxel check\nnpx luxel-host luxel.config.json --check   # validates config, manifests, assets and runtime, then exits\n"},{"zoneId":"t-50","kind":"text","label":"LUXEL_SIGNING_KEY=… npm run sign       # luxel sign: the signed provenance of this build"},{"zoneId":"t-51","kind":"text","label":"Production serves only a signed build (Sprint 11). Make a key pair once with npx luxel keygen. Keep LUXEL_SIGNING_KEY in your pipeline's secret store and never on the hosts. Give every host the public key in LUXEL_PROVENANCE_KEYS. luxel "},{"zoneId":"t-52","kind":"text","label":"sign writes .luxel/provenance.json and its signature next to the build. It records every file and every byte the host will serve, including the static pages, plus your dependencies from package-lock.json and, since Sprint 12, every file of "},{"zoneId":"t-53","kind":"text","label":"the production dependencies installed next to the app (luxel-host's own included), so sign after npm ci on the image you deploy. It prints the build digest, the name of this build in logs and revocations. npx luxel verify runs the host's "},{"zoneId":"t-54","kind":"text","label":"check without serving."},{"zoneId":"t-55","kind":"text","label":"Build outputs (manifests, slot maps, templates) come from the build. Never edit them by hand, and never commit them (the template's .gitignore excludes them)."},{"zoneId":"t-56","kind":"text","label":"Run"},{"zoneId":"t-57","kind":"text","label":"LUXEL_ENV=production LUXEL_VIEW_KEYS=k1:$(head -c 32 /dev/urandom | base64) LUXEL_PROVENANCE_KEYS=k1:‹public key> npm start"},{"zoneId":"t-58","kind":"text","label":"npm start runs luxel-host luxel.config.json. Put TLS in front: the session cookie is __Host-…; Secure. HTTP/2 is recommended. luxel-host answers only the host names in LUXEL_HOSTS (required in production): any other Host gets 421 before "},{"zoneId":"t-59","kind":"text","label":"anything runs, which stops DNS rebinding and cache poisoning through Host. /healthz answers whatever the Host, so a balancer can probe a node by its IP. A proxy in front should still answer only your names."},{"zoneId":"t-60","kind":"text","label":"In a real deploy the key comes from your secret store, not from the command line, and it is the same on every node."},{"zoneId":"t-61","kind":"text","label":"Environment variables"},{"zoneId":"t-62","kind":"text","label":"Variable"},{"zoneId":"t-63","kind":"text","label":"Meaning"},{"zoneId":"t-64","kind":"text","label":"LUXEL_ENV"},{"zoneId":"t-65","kind":"text","label":"production, development or test. With production the host refuses to start with an unsafe setup"},{"zoneId":"t-66","kind":"text","label":"LUXEL_VIEW_KEYS"},{"zoneId":"t-67","kind":"text","label":"kid:base64secret[,kid:base64secret…], 32 random bytes or more each. Required to serve; never generated by luxel-host"},{"zoneId":"t-68","kind":"text","label":"LUXEL_HOSTS"},{"zoneId":"t-69","kind":"text","label":"The host names this app answers to, separated by commas (no scheme, port or wildcard), e.g. app.example.com,www.example.com. Required in production; elsewhere checked only when set (Sprint 12)"},{"zoneId":"t-70","kind":"text","label":"LUXEL_PROVENANCE_KEYS"},{"zoneId":"t-71","kind":"text","label":"kid:‹base64url public key>[,…] (from luxel keygen). Required in production: the build must be signed by one of them"},{"zoneId":"t-72","kind":"text","label":"LUXEL_REVOCATION_POLL_MS"},{"zoneId":"t-73","kind":"text","label":"How often a node reads the revocation list (default 5000)"},{"zoneId":"t-74","kind":"text","label":"LUXEL_REVOKED_BUILDS"},{"zoneId":"t-75","kind":"text","label":"One node without a shared list: build digests that must not start"},{"zoneId":"t-76","kind":"text","label":"PORT"},{"zoneId":"t-77","kind":"text","label":"Listening port (default 8080)"},{"zoneId":"t-78","kind":"text","label":"LUXEL_NODES"},{"zoneId":"t-79","kind":"text","label":"How many nodes run. Above 1, production requires shared stores ("},{"zoneId":"l-80","kind":"text","label":"Sessions"},{"zoneId":"t-81","kind":"text","label":")"},{"zoneId":"t-82","kind":"text","label":"LUXEL_TRUST_PROXY"},{"zoneId":"t-83","kind":"text","label":"1: take the client address from the last X-Forwarded-For entry. Only behind one proxy that is the only way in"},{"zoneId":"t-84","kind":"text","label":"LUXEL_VIEW_TOKEN_TTL_MS"},{"zoneId":"t-85","kind":"text","label":"View token lifetime (default 15 minutes)"},{"zoneId":"t-86","kind":"text","label":"LUXEL_SHUTDOWN_DELAY_MS"},{"zoneId":"t-87","kind":"text","label":"On SIGTERM, how long /healthz answers 503 before the listener closes; longer than your balancer needs to see the node as down"},{"zoneId":"t-88","kind":"text","label":"LUXEL_SHUTDOWN_GRACE_MS"},{"zoneId":"t-89","kind":"text","label":"How long requests in flight may finish (default 10 s)"},{"zoneId":"t-90","kind":"text","label":"LUXEL_GATEWAY_LOG"},{"zoneId":"t-91","kind":"text","label":"0 silences the per-request log lines"},{"zoneId":"t-92","kind":"text","label":"DATABASE_URL"},{"zoneId":"t-93","kind":"text","label":"Not read by luxel-host itself; your bindings read it (for example for @luxel-framework/postgres)"},{"zoneId":"t-94","kind":"text","label":"Do not set LUXEL_STREAM in production: it is a measurement override, and the host refuses to start with it. Early send is configured per view with views.‹id>.stream (off by default)."},{"zoneId":"t-95","kind":"text","label":"What the host refuses in production"},{"zoneId":"t-96","kind":"text","label":"With LUXEL_ENV=production, luxel-host exits with luxel-host: not starting: ‹reason> (the reason never contains a value) when:"},{"zoneId":"t-97","kind":"text","label":"LUXEL_VIEW_KEYS is missing, or a key is malformed or shorter than 32 bytes;"},{"zoneId":"t-98","kind":"text","label":"LUXEL_PROVENANCE_KEYS is missing, the build is not signed by one of them, or any build file or served byte differs from the signed provenance (changed, missing or added; a static page that fills differently; the bindings or one of the app's "},{"zoneId":"t-99","kind":"text","label":"own server modules, Sprint 11 RT-8; a file of an installed production dependency, Sprint 12); or the build is revoked;"},{"zoneId":"t-100","kind":"text","label":"LUXEL_HOSTS is missing (Sprint 12);"},{"zoneId":"t-101","kind":"text","label":"LUXEL_NODES is above 1 and the session store or rate limiter is not shared, or, with a static view, the replay guard or sign-in rate limiter is not shared, or the revocation list is not shared;"},{"zoneId":"t-102","kind":"text","label":"the configuration is invalid (unknown field, bad JSON, a bad value of an LUXEL_* setting);"},{"zoneId":"t-103","kind":"text","label":"LUXEL_STREAM or LUXEL_SERVER_TIMING is set (both are measurement switches)."},{"zoneId":"t-104","kind":"text","label":"When something is compromised"},{"zoneId":"t-105","kind":"text","label":"Rotate view keys, end sessions, revoke a build (npx luxel revoke ‹digest>: every node of that build stops serving within seconds) or rotate the signing key: docs/security/incident-response.md."},{"zoneId":"t-106","kind":"text","label":"Health and shutdown"},{"zoneId":"t-107","kind":"text","label":"GET /healthz answers a word and a status, no data; 503 while draining."},{"zoneId":"t-108","kind":"text","label":"On SIGTERM or SIGINT the node turns /healthz to 503 and answers with Connection: close for LUXEL_SHUTDOWN_DELAY_MS, then stops accepting connections and lets requests in flight finish."},{"zoneId":"t-109","kind":"text","label":"Restart one node at a time."},{"zoneId":"t-110","kind":"text","label":"Before more than one node"},{"zoneId":"t-111","kind":"text","label":"Shared sessionStore, rateLimiter, and (with static views) replayGuard and publicRateLimiter: see "},{"zoneId":"l-112","kind":"text","label":"Sessions"},{"zoneId":"t-113","kind":"text","label":"."},{"zoneId":"t-114","kind":"text","label":"A shared eventStore over your database, so idempotency and versions hold across nodes: see "},{"zoneId":"l-115","kind":"text","label":"Server"},{"zoneId":"t-116","kind":"text","label":"."},{"zoneId":"t-117","kind":"text","label":"The same LUXEL_VIEW_KEYS on every node."},{"zoneId":"t-118","kind":"text","label":"Then go through the full checklist."},{"zoneId":"l-119","kind":"text","label":"Previous: Sessions"},{"zoneId":"l-120","kind":"text","label":"Next: Tooling"},{"zoneId":"l-121","kind":"text","label":"Edit this page on GitHub"},{"zoneId":"t-122","kind":"text","label":"This page: 7.9 KB of JavaScript (Luxel's shared runtime), 0 KB from your app."},{"zoneId":"t-123","kind":"text","label":"Measured when the site is built: the runtime files this page loads, compressed as they are sent."},{"zoneId":"l-124","kind":"text","label":"GitHub"},{"zoneId":"l-125","kind":"text","label":"Discussions"},{"zoneId":"l-126","kind":"text","label":"Apache-2.0"},{"zoneId":"l-127","kind":"text","label":"Ties and losses"},{"zoneId":"t-128","kind":"text","label":"Made by IntiOps. Luxel 0.1.0-beta.1 is a beta: no external security review yet."}],"events":[],"messages":{"network":"Could not reach the server. Check your connection and try again.","unexpected":"Something went wrong. Reload the page."},"extensions":{"render.dom@1":{"root":{"el":"div","class":"site site--en page--doc","children":[{"el":"header","class":"topbar","children":[{"zone":"l-1","el":"span","class":"brand"},{"el":"div","class":"nav","children":[{"zone":"l-2","el":"span","class":"nav-link"},{"zone":"l-3","el":"span","class":"nav-link"},{"zone":"l-4","el":"span","class":"nav-link"},{"zone":"l-5","el":"span","class":"nav-link"},{"zone":"l-6","el":"span","class":"nav-link"},{"zone":"l-7","el":"span","class":"nav-link"},{"zone":"l-8","el":"span","class":"nav-link"}]},{"zone":"l-9","el":"span","class":"lang"}]},{"el":"main","class":"main main--doc","children":[{"el":"div","class":"sidebar","children":[{"zone":"t-10","el":"p","class":"sidebar-version"},{"zone":"l-11","el":"span","class":"side-link side-link--search"},{"zone":"t-12","el":"p","class":"sidebar-group"},{"el":"div","class":"sidebar-links","children":[{"zone":"l-13","el":"span","class":"side-link"},{"zone":"l-14","el":"span","class":"side-link"},{"zone":"l-15","el":"span","class":"side-link"},{"zone":"l-16","el":"span","class":"side-link"}]},{"zone":"t-17","el":"p","class":"sidebar-group"},{"el":"div","class":"sidebar-links","children":[{"zone":"l-18","el":"span","class":"side-link"},{"zone":"l-19","el":"span","class":"side-link"},{"zone":"l-20","el":"span","class":"side-link"},{"zone":"l-21","el":"span","class":"side-link"},{"zone":"l-22","el":"span","class":"side-link"},{"zone":"l-23","el":"span","class":"side-link"},{"zone":"l-24","el":"span","class":"side-link"},{"zone":"l-25","el":"span","class":"side-link"},{"zone":"l-26","el":"span","class":"side-link"},{"zone":"l-27","el":"span","class":"side-link"},{"zone":"l-28","el":"span","class":"side-link side-link--current"},{"zone":"l-29","el":"span","class":"side-link"},{"zone":"l-30","el":"span","class":"side-link"}]},{"zone":"t-31","el":"p","class":"sidebar-group"},{"el":"div","class":"sidebar-links","children":[{"zone":"l-32","el":"span","class":"side-link"},{"zone":"l-33","el":"span","class":"side-link"},{"zone":"l-34","el":"span","class":"side-link"}]},{"zone":"t-35","el":"p","class":"sidebar-group"},{"el":"div","class":"sidebar-links","children":[{"zone":"l-36","el":"span","class":"side-link"},{"zone":"l-37","el":"span","class":"side-link"},{"zone":"l-38","el":"span","class":"side-link"}]},{"zone":"t-39","el":"p","class":"sidebar-group"},{"el":"div","class":"sidebar-links","children":[{"zone":"l-40","el":"span","class":"side-link"},{"zone":"l-41","el":"span","class":"side-link"}]},{"zone":"l-42","el":"span","class":"side-link side-link--index"}]},{"el":"section","class":"article","children":[{"zone":"t-43","el":"p","class":"doc-meta"},{"el":"div","class":"block","children":[{"zone":"t-44","el":"h1","class":"page-title"},{"zone":"t-45","el":"p","class":"para"},{"zone":"t-46","el":"p","class":"para"},{"zone":"t-47","el":"h2","class":"section-title"},{"zone":"t-48","el":"p","class":"para"},{"el":"p","class":"code","children":[{"zone":"t-49","el":"span"},{"zone":"t-50","el":"span"}]},{"el":"p","class":"para","children":[{"zone":"t-51","el":"span"},{"zone":"t-52","el":"span"},{"zone":"t-53","el":"span"},{"zone":"t-54","el":"span"}]},{"zone":"t-55","el":"p","class":"para"},{"zone":"t-56","el":"h2","class":"section-title"},{"zone":"t-57","el":"p","class":"code"},{"el":"p","class":"para","children":[{"zone":"t-58","el":"span"},{"zone":"t-59","el":"span"}]},{"zone":"t-60","el":"p","class":"para"},{"zone":"t-61","el":"h2","class":"section-title"},{"el":"div","class":"table-wrap","children":[{"el":"table","class":"table","children":[{"el":"thead","children":[{"el":"tr","children":[{"zone":"t-62","el":"th"},{"zone":"t-63","el":"th"}]}]},{"el":"tbody","children":[{"el":"tr","children":[{"zone":"t-64","el":"td"},{"zone":"t-65","el":"td"}]},{"el":"tr","children":[{"zone":"t-66","el":"td"},{"zone":"t-67","el":"td"}]},{"el":"tr","children":[{"zone":"t-68","el":"td"},{"zone":"t-69","el":"td"}]},{"el":"tr","children":[{"zone":"t-70","el":"td"},{"zone":"t-71","el":"td"}]},{"el":"tr","children":[{"zone":"t-72","el":"td"},{"zone":"t-73","el":"td"}]},{"el":"tr","children":[{"zone":"t-74","el":"td"},{"zone":"t-75","el":"td"}]},{"el":"tr","children":[{"zone":"t-76","el":"td"},{"zone":"t-77","el":"td"}]},{"el":"tr","children":[{"zone":"t-78","el":"td"},{"el":"td","children":[{"zone":"t-79","el":"span"},{"zone":"l-80","el":"span"},{"zone":"t-81","el":"span"}]}]},{"el":"tr","children":[{"zone":"t-82","el":"td"},{"zone":"t-83","el":"td"}]},{"el":"tr","children":[{"zone":"t-84","el":"td"},{"zone":"t-85","el":"td"}]},{"el":"tr","children":[{"zone":"t-86","el":"td"},{"zone":"t-87","el":"td"}]},{"el":"tr","children":[{"zone":"t-88","el":"td"},{"zone":"t-89","el":"td"}]},{"el":"tr","children":[{"zone":"t-90","el":"td"},{"zone":"t-91","el":"td"}]},{"el":"tr","children":[{"zone":"t-92","el":"td"},{"zone":"t-93","el":"td"}]}]}]}]},{"zone":"t-94","el":"p","class":"para"},{"zone":"t-95","el":"h2","class":"section-title"},{"zone":"t-96","el":"p","class":"para"},{"el":"div","class":"list-wrap","children":[{"el":"ul","class":"list","children":[{"zone":"t-97","el":"li"},{"el":"li","children":[{"zone":"t-98","el":"span"},{"zone":"t-99","el":"span"}]},{"zone":"t-100","el":"li"},{"zone":"t-101","el":"li"},{"zone":"t-102","el":"li"},{"zone":"t-103","el":"li"}]}]},{"zone":"t-104","el":"h2","class":"section-title"},{"zone":"t-105","el":"p","class":"para"},{"zone":"t-106","el":"h2","class":"section-title"},{"el":"div","class":"list-wrap","children":[{"el":"ul","class":"list","children":[{"zone":"t-107","el":"li"},{"zone":"t-108","el":"li"},{"zone":"t-109","el":"li"}]}]},{"zone":"t-110","el":"h2","class":"section-title"},{"el":"div","class":"list-wrap","children":[{"el":"ul","class":"list","children":[{"el":"li","children":[{"zone":"t-111","el":"span"},{"zone":"l-112","el":"span"},{"zone":"t-113","el":"span"}]},{"el":"li","children":[{"zone":"t-114","el":"span"},{"zone":"l-115","el":"span"},{"zone":"t-116","el":"span"}]},{"zone":"t-117","el":"li"}]}]},{"zone":"t-118","el":"p","class":"para"}]},{"el":"div","class":"pager","children":[{"zone":"l-119","el":"span","class":"pager-link"},{"zone":"l-120","el":"span","class":"pager-link pager-link--next"}]},{"zone":"l-121","el":"span","class":"edit-link"}]}]},{"el":"footer","class":"footer","children":[{"zone":"t-122","el":"p","class":"jsline"},{"zone":"t-123","el":"p","class":"jsnote"},{"el":"div","class":"footer-links","children":[{"zone":"l-124","el":"span","class":"footer-link"},{"zone":"l-125","el":"span","class":"footer-link"},{"zone":"l-126","el":"span","class":"footer-link"},{"zone":"l-127","el":"span","class":"footer-link"}]},{"zone":"t-128","el":"p","class":"made"}]}]}},"projection.slots@1":{"template":"/_luxel/a/docs-v0-1-production.7e3906086c87.html","map":"/_luxel/a/docs-v0-1-production.slots.a5aa125b0f69.json"}}}