Add an own tracker and STUN server in backend/
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>
This commit is contained in:
1 parent
bb69569b51
commit
22d794965e
10 files changed
+665
-51
No files matched your search
@@ -13,6 +13,7 @@
|
||||
"verbatimModuleSyntax": true,
|
||||
"isolatedModules": true,
|
||||
"skipLibCheck": true,
|
||||
"allowJs": true,
|
||||
"noEmit": true
|
||||
},
|
||||
"include": ["src/**/*.ts", "src/**/*.vue", "vite.config.ts", "e2e.spec.ts"]
|
||||
|
||||
Reference in new issue
Block a user