One command builds the client dist and server binary, then starts the loopback server behind the DESIGN 11.1 TLS/HTTP2 nginx on the detected LAN address. State, GM key and certificate persist under run/lan so a table and a phone's trust survive Ctrl-C/restart; the certificate is regenerated when the address changes. Prints the URL, GM key and Android/laptop trust steps. tools/nginx.mjs and tools/tlsdev.mjs gained the bind/SAN knobs the LAN needs (test defaults unchanged). tools/serve.test.mjs proves h2 + verified TLS on /healthz and /, POST /join, a /ws upgrade on the LAN address, loopback-only server binding, and identical key/cert after a restart.
54 lines
1.3 KiB
JSON
54 lines
1.3 KiB
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",
|
|
"imagemagick": "latest"
|
|
},
|
|
"shell": {
|
|
"init_hook": [],
|
|
"scripts": {
|
|
"test": [
|
|
"tools/test.sh"
|
|
],
|
|
"e2e": [
|
|
"client/e2e/run.sh"
|
|
],
|
|
"client-test": [
|
|
"client/run-tests.sh"
|
|
],
|
|
"serve": [
|
|
"tools/serve.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"
|
|
],
|
|
"fogbench": [
|
|
"mkdir -p results; nim c -d:release --hints:off -o:run/test/fogbench tools/fogbench.nim > results/m4-fog-bench.log 2>&1 && ./run/test/fogbench >> results/m4-fog-bench.log 2>&1; rc=$?; cat results/m4-fog-bench.log; exit $rc"
|
|
]
|
|
}
|
|
},
|
|
"env": {
|
|
"NIMBLE_DIR": "$DEVBOX_PROJECT_ROOT/.devbox/nimble",
|
|
"LD_LIBRARY_PATH": "$DEVBOX_PACKAGES_DIR/lib"
|
|
}
|
|
}
|