Files
pipelines/web
alan ad6cdab418 Listen on loopback and tailnet by default; make the plain-HTTP LAN opt-in
The web proxy binds the wildcard and drops connections that are not
loopback or Tailscale at both ends. A LAN listener is opt-in (web.lan) and
refuses sign-in and signed-in pages over plain HTTP unless
web.lan_plain_login is set. Existing installs keep their bind address with
a warning. Without the LAN the mDNS advert carries only the tailnet and
public routes (lan=0).
2026-11-10 01:02:02 +00:00
..

Web proxy

serve.mjs is the authenticated front door: the sign-in page, the Flutter web app (built from app/ by the installer, in Docker), and a same-origin proxy to the Pipelines server for /connect, /artifacts/ and /chat-uploads. It has no dependencies.

node serve.mjs --port 8082 --host 0.0.0.0 --pipelines 127.0.0.1:8080 \
  --root ~/.local/share/pipelines/lib/app-web \
  --updates ~/.local/share/pipelines/lib/app-updates
  • --root is the web app (default: ../app/build/web). Without a build, the page explains how to make one (./install --web).
  • --updates serves the Android app's version.json and APK at /updates/ (./install --apk), behind the same sign-in.
  • The password lives in ~/.config/pipelines/web-auth.json (PIPELINES_WEB_AUTH_FILE); the installer asks for it on a new computer.

Tests: npm test (proxy routing and origin checks). The server's artifact isolation test drives test/artifact-security-probe.mjs in Chrome.