atyenoria / janus-webrtc-gateway-docker

Perfect Docker Image for Media Streaming Expert User ( https://github.com/meetecho/janus-gateway )
688 stars 200 forks source link

Specifying STUN/TURN servers #60

Closed jasonkang14 closed 4 years ago

jasonkang14 commented 4 years ago

Your work has been great. I am using your docker container to test my app. As I try to test a videroom plugin, I realized that I need to specify STUN server in order to use the service via internet.

How can I specify STUN servers for your container?

atyenoria commented 4 years ago

use google stun just for test

jasonkang14 commented 4 years ago

do I have to set up something inside the docker container? Or is using a list of stun servers as an argument when initiating Janus sufficient?

kuzm1ch commented 4 years ago

@jasonkang14 A list of stun servers as an argument when initiating Janus is ok.

You will need to configure STUN on the Janus side in case when the gateway is behind NAT. https://github.com/meetecho/janus-gateway/blob/master/conf/janus.jcfg.sample.in#L220