Files
BetterDesk/docs/README.md
T
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

3.0 KiB

Documentation

User guides live in the GitHub Wiki (source: wiki/, sync with scripts/sync-wiki.ps1 / scripts/sync-wiki.sh).

Root entry points: README, PRIVACY.md, CHANGELOG.md.


For operators

Start on the wiki: Home → Installation → Client setup → TLS as needed.

Longer runbooks in this tree:

Topic Doc
Ports & firewall (start here) CONNECTION_PORTS.md — port table, 4 profiles, client-field map, pairing requirements
Installation detail setup/INSTALLATION_V1.4.0.md
Updates setup/UPDATE_GUIDE.md
HTTPS (panel) setup/HTTPS_SETUP.md
Reverse proxy setup/REVERSE_PROXY.md
Synology setup/SYNOLOGY_INSTALLATION.md
Client mass deploy setup/RUSTDESK_CLIENT_DEPLOYMENT.md
Docker docker/DOCKER_QUICKSTART.md, docker/DOCKER_SUPPORT.md, docker/DOCKER_TROUBLESHOOTING.md
Troubleshooting troubleshooting/TROUBLESHOOTING_EN.md, troubleshooting/KEY_TROUBLESHOOTING.md

For developers / integrators

Topic Doc
Contributing development/CONTRIBUTING.md
Translations development/CONTRIBUTING_TRANSLATIONS.md
Build from source setup/BUILD_GUIDE.md
Project layout architecture/PROJECT_STRUCTURE.md
CDAP cdap/, architecture/CDAP_PROTOCOL.md
SDKs sdk/
Threat model / encryption security/THREAT_MODEL.md, security/ENCRYPTION_SPEC.md
Port notes architecture/PORT_SECURITY.md historical — use CONNECTION_PORTS.md

Wiki mirrors for common topics: API, CDAP, SDK.


Maintainers

Branching, update flow, installer contracts: important/README.md.

Dated audits, roadmaps, and one-off plans are historical — see archive/ when present, or treat root-level AUDIT_* / *_ROADMAP_* / *_PLAN_* files as non-user docs (do not link them from the wiki Home).


Changelog

Use the root CHANGELOG.md only. The old development/CHANGELOG.md file is a stub redirect.