(redirect_prefix: string, nginx_config: string): { redirect_prefix: string; } & $brand<"XAccelConfig"> import {create_x_accel_config} from '@fuzdev/fuz_app/server/x_accel.js'; Build a validated XAccelConfig, asserting the nginx location serving
redirect_prefix is internal;.
The make-impossible-states gate: serving can only emit X-Accel-Redirect
into a location proven internal; at boot.
redirect_prefix
the X-Accel redirect prefix (e.g. /_facts/)
stringnginx_config
the nginx config template string to validate against
stringreturns
{ redirect_prefix: string; } & $brand<"XAccelConfig"> the validated XAccelConfig carrying redirect_prefix
throws
- `XAccelConfigError` when `nginx_config` has no matching `location` for `redirect_prefix`, or the matching block is not marked `internal;` — either is a public facts location that bypasses every cell-visibility check.