Commit Graph

12 Commits

Author SHA1 Message Date
cloudwithax ea21aa55b6 feat(turn): add embedded TURN server with credential service
Integrate a TURN/STUN server into the relay for NAT traversal of
WebRTC connections. Clients request time-limited HMAC-SHA1 credentials
over a new libp2p request-response protocol and then talk to the TURN
server directly via UDP/TCP.

Key changes:
- Add `turn` module with server, credentials, and configuration
- Register `/dusk/turn-credentials/1.0.0` request-response protocol
  so clients can obtain time-limited TURN credentials (24h TTL)
- Expose TURN signaling (3478/udp+tcp) and relay allocation ports
  (49152-65535/udp) in Dockerfile and docker-compose
- Add TURN-related environment variables for public IP, shared secret,
  realm, port ranges, and allocation limits
- Validate directory display_name (1-64 chars) and return typed errors
- Restrict keypair file permissions to 0600 on Unix
2026-02-24 20:57:05 -05:00
cloudwithax b29039557a add directory service for peer profile management with SQLite integration 2026-02-19 17:48:07 -05:00
cloudwithax 5c8f57e07c add in-memory gif cache and rate limiter to optimize api requests 2026-02-15 17:20:06 -05:00
cloudwithax d4b558b35b lint fix 2026-02-15 16:46:05 -05:00
cloudwithax 5073351fb9 add gif search service using request-response protocol and update dependencies 2026-02-15 16:45:52 -05:00
cloudwithax 47af6658a2 add connection limits configuration and logging for max concurrent peers 2026-02-14 22:14:20 -05:00
cloudwithax 6ed6a1524e add gossipsub support for relay federation and update dependencies 2026-02-14 21:08:10 -05:00
cloudwithax 10900e7740 increase ping interval to 30s and idle connection timeout to 300s 2026-02-14 15:57:42 -05:00
cloudwithax db66dc2bed add volume 2026-02-13 21:44:29 -05:00
cloudwithax 675aaedf9a update Dockerfile to use Rust 1.85-slim; add MIT License 2026-02-13 19:01:46 -05:00
cloudwithax 67385a5ee6 added readme; removed target 2026-02-13 18:09:21 -05:00
cloudwithax b5c52430d1 init commit 2026-02-13 18:01:15 -05:00