Make dashboard host configurable (LAN reachable via dashboard.host / --host)

This commit is contained in:
Denton Social
2026-09-23 14:36:15 -05:00
parent 356ae2d46d
commit 98d6e09730
3 changed files with 24 additions and 4 deletions
+6 -1
View File
@@ -138,6 +138,11 @@ def main(argv: list[str] | None = None) -> int:
dash_p = sub.add_parser("dashboard", help="run the local browser dashboard")
dash_p.add_argument("--port", type=int, default=int(config.get("dashboard", {}).get("port", 8765)))
dash_p.add_argument(
"--host",
default=str(config.get("dashboard", {}).get("host", "127.0.0.1")),
help="bind address (0.0.0.0 to expose on the LAN)",
)
dash_p.add_argument(
"--replay",
action="store_true",
@@ -166,7 +171,7 @@ def main(argv: list[str] | None = None) -> int:
if args.replay:
print("replay mode: reading decision log + trace; engine not warmed.")
serve(scheduler, port=args.port)
serve(scheduler, port=args.port, host=args.host)
else:
parser.print_help()
return 0