backend/ runs both as Docker Compose services, neither is needed: the client works with any WebTorrent tracker and STUN server. The tracker is one file on Node and ws that does only the part of the protocol HellCon uses. It accepts allowed origins only and messages of at most 16 KiB, only announce, one offer per announce and answers only to offers it delivered, once. Forwarded messages are rebuilt from the checked fields. It limits the message rate, the signaling each connection sends, the bytes queued for a peer that stops reading, connection age, connections per IP and in total, and peers per swarm. It logs nothing. coturn runs STUN only on the host network, pinned, read-only and without capabilities beyond the one its binary needs. backend/tracker.spec.mjs tests its rules one by one, e2e.spec.ts sends a real file through it alone in both directions between Chromium and Firefox. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
7 lines
173 B
Docker
7 lines
173 B
Docker
FROM node:26.11.1-alpine3.23
|
|
WORKDIR /app
|
|
RUN npm install --no-save --omit=dev ws@8.22.0
|
|
COPY tracker.mjs .
|
|
USER node
|
|
CMD ["node", "--max-old-space-size=48", "tracker.mjs"]
|