Files
NiiGram-server/docker/compose/turnserver.conf
НИИГрам 6e0b23b03c НИИГрам: VoIP/media push fixes, layer-224 uploadMedia, sticker import
Fix background push delivery for session AOT 0.32 (empty Users in updates),
VoIP TURN/signaling, multi-screenshot SendMultiMedia, FilePartManager race,
LayerN uploadMedia handler, and add Bot API sticker pack import script.
2026-08-23 18:51:50 +00:00

85 lines
1.9 KiB
Plaintext

# Coturn TURN/STUN Server Configuration for MyTelegram VoIP
# Based on RFC 5766 (TURN) and RFC 5389 (STUN)
# Listen on all interfaces (Docker compatibility)
listening-ip=0.0.0.0
# Listening port for TURN/STUN
listening-port=3479
# TLS listening port (disabled for local testing)
# tls-listening-port=5349
# Relay ports range for media
min-port=50210
max-port=50310
# Server realm (domain)
realm=opengram.local
# Authentication
# Use long-term credentials
lt-cred-mech
# User credentials (username:password)
# Format: user=username:password
# In production, use strong passwords and rotate regularly
user=mytelegram:81a2593e0ed61d7704e971f259510d94
# Logging
verbose
log-file=/var/log/coturn/turnserver.log
# Performance tuning
# Total quota (bytes per allocation)
total-quota=999999
# Bandwidth per session (bytes/sec)
bps-capacity=0
# No multicast
no-multicast-peers
# Disable software attributes
no-software-attribute
# Mobility
mobility
# WebRTC compatibility
fingerprint
# Secure communication (TLS disabled for local testing)
# no-tls
# no-dtls
# TLS/DTLS certificate paths (optional, for TLS)
# cert=/etc/coturn/cert.pem
# pkey=/etc/coturn/key.pem
# CLI
cli-password=e5af7430a47b762d3e680825
# Allow TURN for specific IP ranges (optional)
allowed-peer-ip=10.10.10.0-10.10.10.255
allowed-peer-ip=10.4.10.0-10.4.10.255
# denied-peer-ip=192.168.0.0-192.168.255.255
# Database for persistent storage (optional)
# psql-userdb="host=postgresql dbname=coturn user=coturn password=password"
# Redis for session management (optional)
# redis-userdb="ip=redis dbname=0 password=turn connect_timeout=30"
# Prometheus metrics (optional)
# prometheus
# Disable UDP relay endpoints
# no-udp-relay
# Use external IP (important for NAT)
# Must match App__WebRtcConnections__0__Ip in .env
# For local testing use 127.0.0.1, for production use your public IP
external-ip=82.146.62.100/10.4.10.80
relay-ip=10.4.10.80