Add turn server

This commit is contained in:
Joey Yakimowich-Payne 2026-01-19 11:13:13 -07:00
commit d38aeb2f44
No known key found for this signature in database
GPG key ID: DDF6AF5B21B407D4
6 changed files with 163 additions and 9 deletions

View file

@ -49,3 +49,22 @@ LOG_REQUESTS=false
# Get a key at: https://aistudio.google.com/apikey
# ==============================================================================
GEMINI_API_KEY=
# ==============================================================================
# OPTIONAL - TURN Server (REQUIRED for cross-network multiplayer)
# Without TURN, players behind restrictive NATs/firewalls cannot connect.
#
# Option A: Self-hosted coturn (see docker-compose.turn.yml)
# 1. Edit turnserver.conf (set external-ip, realm, user password)
# 2. docker compose -f docker-compose.turn.yml up -d
# 3. Set values below to match turnserver.conf
# VITE_TURN_URL=turn:your-server-ip:3478
# VITE_TURN_USERNAME=kaboot
# VITE_TURN_CREDENTIAL=your-password-from-turnserver-conf
#
# Option B: Metered.ca free tier (500GB/mo)
# Get credentials at: https://www.metered.ca/tools/openrelay/
# ==============================================================================
VITE_TURN_URL=
VITE_TURN_USERNAME=
VITE_TURN_CREDENTIAL=