- Introduce a new `.env.example` file for environment variable setup, including `PUBLIC_IP`, `TURN_SECRET`, and `TURN_URLS` for WebRTC TURN server configuration. - Update `docker-compose.yaml` to support TURN server deployment with necessary environment variables and commands. - Enhance backend configuration and routes to include WebRTC ICE server settings, allowing for STUN/TURN server integration. - Implement a new service for managing WebRTC ICE server configurations, providing credentials for TURN when configured. - Modify frontend API to fetch ICE server configurations dynamically, improving support for cross-network voice preview.
5 lines
251 B
Plaintext
5 lines
251 B
Plaintext
# docker compose 变量(复制为项目根 .env)。公网 WebRTC 需配合 --profile remote。
|
|
PUBLIC_IP=182.92.86.220
|
|
TURN_SECRET=change-me-to-a-long-random-string
|
|
TURN_URLS=turn:182.92.86.220:3478?transport=udp,turn:182.92.86.220:3478?transport=tcp
|