Is a TURN server built-in for Nextcloud Talk?
Opened this issue ยท 4 comments
Quoted from https://help.nextcloud.com/t/howto-setup-nextcloud-talk-with-turn-server/30794:
In some cases, e.g. in combination with firewalls or symmetric NAT 110 a STUN server will not work as well, and then a so called TURN 118 server is needed. Now no direct P2P connection is established, but all traffic is relayed through the TURN server, thus additional (at least internal) traffic and resources are needed.
I have attempted to host Nextcloud (using other images) before but unfortunately either I can't see or the participant can't see video of the other. Every Dockerized Nextcloud I've come across doesn't package a solution in. My own attempts have ended in failure.
Also fully willing to put a bounty on this!
Doesn't look like it. I spent all day trying to magick up a solution and I've gotten nowhere.
For anyone interested here's the relevant piece of my docker-compose.yaml
:
coturn:
image: instrumentisto/coturn
container_name: coturn
tmpfs:
- /var/lib/coturn
volumes:
- "./coturn/turnserver.conf:/etc/coturn/turnserver.conf"
network_mode: "host"
and my turnserver.conf
:
tls-listening-port=5349
fingerprint
lt-cred-mech
use-auth-secret
static-auth-secret=supersecretpassphrase
realm=talk.hansen.agency
total-quota=100
bps-capacity=0
stale-nonce
cert=/etc/letsencrypt/live/talk.hansen.agency/fullchain.pem
pkey=/etc/letsencrypt/live/talk.hansen.agency/privkey.pem
cipher-list="ECDH+AESGCM:DH+AESGCM:ECDH+AES256:DH+AES256:ECDH+AES128:DH+AES:ECDH+3DES:DH+3DES:RSA+AES:RSA+3DES:!ADH:!AECDH:!MD5"
no-loopback-peers
no-multicast-peers
@Spass1966 Yes, the implementation seems special and difficult. I don't plan to add this service but feel free to tell us if you have found anything. Btw, have you tried this one ?
I've been able to fix this issue using the following additional container:
coturn:
image: woahbase/alpine-coturn
container_name: coturn
volumes:
- "./coturn/turnserver.conf:/var/lib/coturn/turnserver.conf"
expose:
- "3478"
- "3479"
- "5349"
- "5350"
ports:
- "3478:3478"
restart: always
Install the Talk app from the Nextcloud dashboard, navigate to Settings - Talk then follow steps 3 and 5 here https://help.nextcloud.com/t/howto-setup-nextcloud-talk-with-turn-server/30794
Restart the coturn
container and you're good to go. Make sure port 3478 is open in your router.