Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is a TURN server built-in for Nextcloud Talk? #15

Closed
ghost opened this issue Mar 19, 2019 · 4 comments
Closed

Is a TURN server built-in for Nextcloud Talk? #15

ghost opened this issue Mar 19, 2019 · 4 comments

Comments

@ghost
Copy link

ghost commented Mar 19, 2019

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.

@ghost ghost changed the title Is coturn built-in for Nextcloud Talk? Is a TURN server built-in for Nextcloud Talk? Mar 19, 2019
@ghost
Copy link
Author

ghost commented Mar 19, 2019

Also fully willing to put a bounty on this!

@ghost
Copy link
Author

ghost commented Mar 21, 2019

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

@crazy-max
Copy link
Owner

@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 ?

@ghost
Copy link
Author

ghost commented Aug 26, 2019

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.

@ghost ghost closed this as completed Aug 26, 2019
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant