The following describes the steps in setting up a new Google Cloud Virtual Machine instance. This document assumes that you have already set up Google Cloud compute and the associated SDK for management (https://cloud.google.com/sdk/). We recommend running Red5 Pro on linux.
Create a network profile that contains a firewall rule to make the following ports accessible from anywhere:
|5080||default web access of Red5 Pro|
|1935||default Red5 Pro RTMP port|
|8554||default RTSP port|
|6262||websockets (for second screen and HLS)|
|8088||second screen client registry|
Ports required for WebRTC server using SSL:
|80||modified web access of Red5 Pro||TCP|
|443||standard HTTPS port||TCP|
|1935||default Red5 Pro RTMP port||TCP|
|8554||default RTSP port||TCP|
|6262||websockets for HLS||TCP|
|8081||websockets for WebRTC||TCP|
|8083||secure websockets for WebRTC||TCP|
|40000-65000||TURN/STUN/ICE port range||UDP|
From Compute Engine, VM, create an Ubuntu 16.04 instance (recommended for the small footprint of the OS, and the stability of this release), using the network you created.
IMPORTANT NOTE: choose Standard Persistent Disk type, instead of the default SSD . We have observed issues with Red5 Pro services starting up on the SSD disk images and with Google's Ubuntu 15 image.
For basic RTMP and RTSP testing, the n1-standard-1 machine type should be sufficient (or n1-standard-2 if you have multiple beta users or are mostly using WebRTC). More details on Google's machine types here
Once the instance has spun up, use the Google Cloud SDK to copy the latest version of Red5 Pro server to the instance:
gcloud compute copy-files red5pro-server.zip root@red5pro-image-01:/tmp/
SSH into the server and install java and unzip so that you can set up the server:
gcloud compute ssh red5pro-image-01
Follow directions for installing Red5 Pro server on linux