feat(m4): LAN playtest run script (devbox run serve) (#80)
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.
This commit is contained in:
@@ -32,6 +32,9 @@
|
||||
"client-test": [
|
||||
"client/run-tests.sh"
|
||||
],
|
||||
"serve": [
|
||||
"tools/serve.sh"
|
||||
],
|
||||
"mutation": [
|
||||
"tools/mutation.sh"
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user