openvidu/openvidu-server/docker/openvidu-coturn
cruizba 6a73083e7b openvidu-deployment: General updates in nginx and public ip discovering:
- Add option to redirect www to non-www (REDIRECT_WWW).
- Add endpoint to check nginx workers.
- Custom virtual hosts (Server blocks) can be added by the user to create custom rules in `/opt/openvidu/custom-nginx-vhost`.
- Parametrize `worker_connections` in nginx.conf (WORKER_CONNECTIONS)
- Improve `discover_my_public_ip.sh` to use dns servers instead of http servers
- Posibility to autodiscover ipv6 if available by using `PUBLIC_IP=auto-ipv6` in nginx, `TURN_PUBLIC_IP=auto-ipv6` in coturn and `COTURN_IP=auto-ipv6` in openvidu-server.
By default ipv4 is used.
2020-11-02 19:46:59 +01:00
..
Dockerfile deployment-openvidu-ce: Fixed infinite logs in coturn and add new execution mode 2020-10-08 19:58:18 +02:00
README.md deployment-openvidu-ce-and-pro: Fixing some turn problems in OpenVidu CE 2020-10-14 17:30:28 +02:00
configuration-files.sh deployment-openvidu-ce-and-pro: Fixing some turn problems in OpenVidu CE 2020-10-14 17:30:28 +02:00
create_image.sh Parametrized create_image.sh scripts for CI 2020-06-23 12:11:54 +02:00
entrypoint.sh openvidu-deployment: General updates in nginx and public ip discovering: 2020-11-02 19:46:59 +01:00

README.md

Coturn OpenVidu

This is a docker image to launch a coturn server. Environment variables can be defined to modify the files /etc/default/coturn and cat>/etc/turnserver.conf.

Environment variables

Turn configuration

  • TURN_PUBLIC_IP: Public ip where coturn will be placed. If this environment variable is not setted, it will get the ip returned by curl ifconfig.co.
  • TURN_LISTEN_PORT: Port where turn will be listening.

Turn credentials

  • REDIS_IP: Redis where credentials are stored
  • DB_NAME: Name of the database in redis
  • DB_PASSWORD: Password of the redis database

Execution example

Actual version of OpenVidu need to be located in the same node because tokens sends the url for turn/stun connections with the host url.

Execute turn locally next to the redis database

You need to have a redis database running:

docker run --rm --name some-redis -d -p 6379:6379 redis

Get the ip of the container and after that, run coturn, you can use url as ip too, in this example I am running coturn with nip.io:

docker run -it -e REDIS_IP=172.17.0.2 -e DB_NAME=0 -e DB_PASSWORD=turn -e MIN_PORT=40000 -e MAX_PORT=65535 -e TURN_PUBLIC_IP=auto -e TURN_LISTEN_PORT=3478 --network=host openvidu/openvidu-coturn

Execute turn locally with fixed username and password

docker run -it -e TURN_PUBLIC_IP=auto -e TURN_USERNAME_PASSWORD=<USER>:<PASSWORD> -e MIN_PORT=40000 -e MAX_PORT=65535 -e TURN_LISTEN_PORT=3478 --network=host openvidu/openvidu-coturn

Kubernetes

TODO