WebRTC Setup for Cluebase VMS

Local Network Usage

WebRTC works inside a local network by default.
No additional configuration is required.

A TURN server is only needed if remote access to Cluebase VMS is required over the Internet.


1. Install a TURN Server in Docker on a VPS

Create a compose.yaml file with the following content:

services:
  coturn:
    image: coturn/coturn
    container_name: coturn
    restart: always
    network_mode: 'host'
    command:
      - -n
      - --log-file=stdout
      - --listening-ip=0.0.0.0
      - --relay-ip=local_ip
      - --external-ip=public_ip
      - --min-port=40000
      - --max-port=59000
      - --no-auth

Replace the following values:

Start the TURN server:

docker compose up -d

2. Using the Same Server for Cluebase VMS and TURN

If the server where Cluebase VMS is installed has a public IP address, the TURN server can be installed on the same server.

In this case:

Ports that need to be forwarded in the router:

If a firewall is enabled, make sure these ports are allowed in the firewall rules.


3. Configure Cluebase VMS

Edit the .env file of Cluebase VMS.

Change:

ENABLE_STUN_TURN=0

to:

ENABLE_STUN_TURN=1

Add the following parameters:

STUN_SERVER_HOST=turn_server_ip
STUN_SERVER_PORT=3478

Replace turn_server_ip with the IP address of your TURN server.


Revision #1
Created 2026-05-25 19:29:04 UTC by Zalim
Updated 2026-05-25 19:32:36 UTC by Zalim