The test nginx is now the production shape of DESIGN 11.1 and the browser gate's real path (#66, spec #63 decision 6): TLS-only listener with http2 on, a self-signed certificate generated per run (tools/tlsdev.mjs, added to the process's default CA list so verification stays on), the client dist at / with SPA fallback, index no-cache and a year-immutable /assets/ cache, and the tile gate's internal /_tiles/ still unreachable. Existing tile/doors/oneway/wallbehaviour harnesses point their server's public origin at the https vhost, so they prove the same listener the browser uses. tools/vhost.test.mjs is the independent node:http2 client (cert SANs, ALPN h2, cache headers, SPA fallback, direct /_tiles/ 404); e2e/h2.test.mjs drives devbox chromium via playwright-core and asserts the page reports h2 (`devbox run e2e`, npm deps outside tools/). Root devbox gains chromium + openssl. Harness builds use a worktree-local nimcache so parallel worktrees stop corrupting each other's objects. Refs #66
44 lines
970 B
JSON
44 lines
970 B
JSON
{
|
|
"$schema": "https://raw.githubusercontent.com/jetify-com/devbox/0.17.2/.schema/devbox.schema.json",
|
|
"packages": {
|
|
"nim": "2",
|
|
"nimble": "latest",
|
|
"coreutils": "latest",
|
|
"gnused": "latest",
|
|
"diffutils": "latest",
|
|
"gnugrep": "latest",
|
|
"nodejs": "26",
|
|
"sqlite": {
|
|
"version": "latest",
|
|
"outputs": [
|
|
"out",
|
|
"bin"
|
|
]
|
|
},
|
|
"nginx": "latest",
|
|
"openssl": "latest",
|
|
"chromium": "latest"
|
|
},
|
|
"shell": {
|
|
"init_hook": [],
|
|
"scripts": {
|
|
"test": [
|
|
"tools/test.sh"
|
|
],
|
|
"e2e": [
|
|
"e2e/run.sh"
|
|
],
|
|
"mutation": [
|
|
"tools/mutation.sh"
|
|
],
|
|
"bench": [
|
|
"mkdir -p results; nim c -d:release --hints:off -r tools/bench.nim > results/bench.log 2>&1; rc=$?; cat results/bench.log; exit $rc"
|
|
]
|
|
}
|
|
},
|
|
"env": {
|
|
"NIMBLE_DIR": "$DEVBOX_PROJECT_ROOT/.devbox/nimble",
|
|
"LD_LIBRARY_PATH": "$DEVBOX_PACKAGES_DIR/lib"
|
|
}
|
|
}
|