TurnServer için Docker Compose ayarlarndı.
This commit is contained in:
parent
ae3a59e619
commit
9f5eead354
2 changed files with 38 additions and 0 deletions
29
configs/deployment/configs/turnserver.conf
Normal file
29
configs/deployment/configs/turnserver.conf
Normal file
|
|
@ -0,0 +1,29 @@
|
||||||
|
# Coturn ana config
|
||||||
|
|
||||||
|
#Portları firewall üzerinden açmak için aşağıdaki kodları kullan.
|
||||||
|
#sudo ufw allow 3478/udp
|
||||||
|
#sudo ufw allow 3478/tcp
|
||||||
|
#sudo ufw allow 5349/tcp
|
||||||
|
|
||||||
|
listening-port=3478
|
||||||
|
tls-listening-port=5349
|
||||||
|
|
||||||
|
# 🔑 Prod’da sabit domain kullan
|
||||||
|
realm=kursplatform.local
|
||||||
|
|
||||||
|
# 🔑 TURN için shared secret
|
||||||
|
# Bunu backend’te de aynı şekilde kullanacaksın (dinamik credential üretmek için)
|
||||||
|
use-auth-secret
|
||||||
|
static-auth-secret=supersecretkey123
|
||||||
|
|
||||||
|
# TLS sertifikaları (opsiyonel, prod’da Let’s Encrypt kullanabilirsin)
|
||||||
|
cert=/etc/ssl/sozsoft.com/fullchain1.pem
|
||||||
|
pkey=/etc/ssl/sozsoft.com/privkey1.pem
|
||||||
|
|
||||||
|
# STUN/TURN protokolleri
|
||||||
|
lt-cred-mech
|
||||||
|
fingerprint
|
||||||
|
no-stdout-log
|
||||||
|
|
||||||
|
# Güvenlik
|
||||||
|
stale-nonce
|
||||||
|
|
@ -93,3 +93,12 @@ services:
|
||||||
- n8n_data:/home/node/.n8n
|
- n8n_data:/home/node/.n8n
|
||||||
networks:
|
networks:
|
||||||
- n8n
|
- n8n
|
||||||
|
|
||||||
|
coturn:
|
||||||
|
image: instrumentisto/coturn
|
||||||
|
container_name: coturn
|
||||||
|
restart: unless-stopped
|
||||||
|
network_mode: host
|
||||||
|
volumes:
|
||||||
|
- ./configs/turnserver.conf:/etc/coturn/turnserver.conf:ro
|
||||||
|
command: ["-c", "/etc/coturn/turnserver.conf"]
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue