tools/domainsd-cpp/readme.md
domainsd-cpp is an experimental native local-domains proxy used by:
f domains --engine native upf domains --engine native downIt is designed for low overhead on localhost routing and keeps Flow route state in:
~/.config/flow/local-domains/routes.jsonCurrent scope:
*.localhost -> host:port)503 when saturated)504 for connect timeout)GET /_flow/domains/health--launchd-socket <name>) for privileged :80 bind without DockerRuntime tuning:
--max-active-clients, --upstream-*-timeout-ms, --pool-*)FLOW_DOMAINS_NATIVE_*Current limitations:
The Flow CLI builds this binary automatically with clang++ when needed.
:80 without DockerWhen direct bind to 127.0.0.1:80 is blocked by permissions, install launchd socket mode once:
sudo ./tools/domainsd-cpp/install-macos-launchd.sh
This installs dev.flow.domainsd in /Library/LaunchDaemons, binds port 80 via launchd, and runs domainsd-cpp as your user with inherited socket fd.
Uninstall:
sudo ./tools/domainsd-cpp/uninstall-macos-launchd.sh