/

Digital Ocean Installation


We recommend using the public Terraform Modules to install Red5 Pro on cloud platforms.

Installing Red5 Pro on a Digital Ocean Droplet

The following describes the steps in setting up a standalone Red5 Pro server instance on a Digital Ocean Droplet. We recommend running Red5 Pro on Ubuntu linux.

Droplet Setup

  1. From your Digital Ocean dashboard, click on the Create button, and from the pull-down select Droplets droplet
  2. Distributions: select Ubuntu, and from the drop-down choose 20.04 (LTS) x64
  3. The Basic 4GB/2CPU (s-2vcpu-4gb) droplet type will be able to support minimal testing - however, because they do not have dedicated CPUs, you may see issues. The CPU-Optimized 8GB/4CPU (c-4) Droplet (suggested both for the number of CPUs and network performance) will support most live production streaming implementations.
  4. In choosing the instance type, note that WebRTC uses more memory and CPU than RTSP and RTMP streaming and that the higher the resolution, bitrate, and framerate of your streams, the more load they will incur on your server.
  5. Choose a datacenter region (select the region closest to where you will be testing)
  6. VPC - DEFAULT VPC is recommended for testing
  7. Additional options: all are optional; select as needed
  8. Authentication: Recommended - use SSH keys: if you have already uploaded an SSH key, you can choose that here. If you haven't, then click on New SSH Key to copy the contents of the public key of your SSH keypair. Note that you can include multiple keys on an instance if you like. (See this autoscaling doc for instructions on creating an ssh2 keypair). If you prefer to use a root password for connecting, then select that option.
  9. Finalize and create. You can create multiple droplets at the same time (up to 10) if you like. The default name generated will describe the droplet properties (e.g. ubuntu-c-2-4gib-nyc3-01 - Ubuntu OS on a CPU-optimized 2CPU / 4G instance in the NYC3 region); you can use that or modify the instance name (note: the name can be changed at any time).
  10. Add tags - optional, but if you plan to use tags to assign Firewall rules, then add one now.
  11. Select Project - if you have multiple projects, then select which one you want to run your server in; otherwise it will be assigned to the default project (the droplet can be moved to another project after it is created as well).
  12. When the droplet has finished being created, you will see its IP address. dropletprogress.

Floating IP address

Unlike some other cloud providers, if you stop and restart a Digital Ocean droplet, it will retain its ipv4 IP address (Digital Ocean also charges for droplets whether they are running or stopped). A floating IP address is helpful if you might delete the instance, but want to maintain the IP for a DNS name.

To add a floating IP address to your droplet:

  1. click on the instance name to see the detailed page. Near the top, click on Floating IP:Enable now enablenow. This will take you to the Netowrking page.
  2. From the Networking page, click on the Assign Floating IP button enablenow

Optional - Firewall

By default, all inbound ports are open on Digital Ocean droplets. You will probably wish to define a Firewall to restrict port access to your server. To create a firewall:

  1. From the left-hand menu, select Networking, and then select the Firewalls tab firewalls
  2. Click on Create Firewall. Give your firewall a name, and add the following Inbound Rules as needed for your use case:
PortDescriptionProtocol
22SSHTCP
5080default web access of Red5 Pro; Websockets for WebRTCTCP
443modified https access of Red5 Pro; secure websockets for WebRTCTCP
1935default Red5 Pro RTMP portTCP
8554default RTSP portTCP
6262websockets for HLSTCP
40000-65535TURN/STUN/ICE port rangeUDP

3._Apply To Droplets - you can either select the droplet you just created, or use a tag to add multiple droplets applyfw

You can now SSH into it and continue the installation of required software.

Red5 Pro Installation

Copy Red5 Pro Server to the Instance

In following along with the next several steps, please replace occurances of yoursshkey and ip-address with the SSH key you defined on instance setup and the ip address of your instance, respectively. Also note, your ssh login credentials will be root

To install the Red5 Pro Server:

  1. Download the server .zip distribution to your local machine. Make sure to log in with your account on https://account.red5pro.com and download the server from https://account.red5pro.com/download.
  2. SFTP the server .zip distribution into the /tmp directory of your server. If you have a password associated with your SSH key, you will need that:

    sftp -i yoursshkey root@ip-address
    sftp>  put red5pro-server-xxx-release.zip /tmp/
    quit
  3. SSH into the instance using the same credentials:

    ssh -i yoursshkey root@ip-address

Install Red5 Pro Server and Dependencies

Follow directions for installing Red5 Pro server on linux