Files
BetterDesk/.github/workflows
UNITRONIX 1c291db101 docs(ports): one authoritative port cheat sheet, with verification
Port guidance was contradictory, and none of it matched the code.

- `docs/architecture/PORT_SECURITY.md` documented an API on `127.0.0.1:21120` that was never
  shipped (the real port is `21114`).
- `docs/wiki/Installation.md` told operators to expose the panel (`5000`) to WAN, which
  `docs/setup/REVERSE_PROXY.md` explicitly forbids.
- `betterdesk.sh` wrote a `firewall-notes.txt` with `21121` but without `21114`.
- `betterdesk.ps1` opened `5000`, `5443`, `21115`, `21118` and `21119` unconditionally.

New `docs/CONNECTION_PORTS.md` is now the single source of truth: port table with exposure
and failure mode, four ready-to-apply profiles (minimal / reverse-proxy+TLS recommended /
WSS-only / Docker), client-field map, what pairing actually requires, a common-mistakes
table and verification commands.

- `PORT_SECURITY.md` is marked historical and points at the new document; the wiki now
  refers to a profile instead of listing WAN ports.
- `betterdesk.sh` firewall notes include 21114 and separate WAN from localhost.
- `betterdesk.ps1` opens only the documented minimum (21116 TCP+UDP, 21117, Go API).
- `scripts/check-connection-ports.sh|.ps1` compare observed listeners with the chosen
  profile and fail on WAN-exposed panel ports or a mis-bound Client API.
- `scripts/check-port-docs.js` fails CI when the cheat sheet and the port constants in
  `constants.go` / `config.js` disagree, and when `21120` reappears as a live port.

Thanks: INSOLVE (Honorary); Marco Jakobs (@jacotec); MyNameisStitch (@MyNameisStitch); Redspin (@playerumpknow); muopc (@muopc)
2026-11-08 15:04:34 +01:00
..