Bind the native server to the LAN so the phone client can reach it

The native install hardcoded -addr 127.0.0.1, so the server was unreachable from
the phone: the emulator worked because it proxies to the host loopback, but a
real device could not connect even though ntfy (bound to 0.0.0.0:8090) worked.

The bind address is now a manifest setting (server_address() in manage.py, with
older manifests still defaulting to loopback) and setup-native.py records it,
defaulting to 0.0.0.0 like the Docker install did and offering
--bind-address 127.0.0.1 for a loopback-only server. An invalid address is
rejected, and setup prints the phone client URL.

Verified: scripts test suite 116 tests OK, and after reinstalling the server
listens on *:8080 and answers {"healthy":true} on 127.0.0.1, 10.0.0.75,
10.0.0.249 and the tailnet address.
This commit is contained in:
2026-10-15 01:57:27 +01:00
parent 9ca775291b
commit 8adc6b8080
5 changed files with 48 additions and 6 deletions
+8 -4
View File
@@ -293,10 +293,14 @@ pipelines serve # foreground developer/legacy server; Ctrl+C stops it
pipelines
```
The server listens on loopback. Change into your repository and run a pipeline
there; the client sends its current directory to the server. The server's own
working directory does not restrict which repositories you can use. Model tool
permissions and approved edit paths remain separate, per-run/stage controls.
The server binds to `0.0.0.0` by default (the LAN, so the phone client can reach
it), matching the Docker install; record `127.0.0.1` on the manifest with
`./install --bind-address 127.0.0.1` for a loopback-only server. The Pipelines API
has no authentication, so keep that port on a trusted LAN/VPN. Change into your
repository and run a pipeline there; the client sends its current directory to the
server. The server's own working directory does not restrict which repositories
you can use. Model tool permissions and approved edit paths remain separate,
per-run/stage controls.
The SQLite database uses the standard user data location, honoring `XDG_DATA_HOME`
when set. On macOS it uses the user Application Support directory. `-db FILE`