VPS
SETUP
Provision an Ubuntu 22.04 VPS with nginx-rtmp and ffmpeg to enable live RTMP ingest and HLS streaming for Alpha Live. Follow these steps in order.
Ubuntu 22.04 LTSnginx + libnginx-mod-rtmpffmpegLet's Encrypt TLSHLS output
SIGNAL FLOW
OBS / vMix ──RTMP:1935──▶ nginx-rtmp (VPS) ──writes──▶ /var/www/hls/{key}/index.m3u8
└── nginx HTTP :80/:443 ──serves──▶ https://stream.alphalive.net/hls
└── Alpha Live app (hls.js) ──plays──▶ /stream/{id}
└── nginx HTTP :80/:443 ──serves──▶ https://stream.alphalive.net/hls
└── Alpha Live app (hls.js) ──plays──▶ /stream/{id}
01
# After SSH access is confirmed, update the system
apt update && apt upgrade -y
# Set hostname (optional but recommended)
hostnamectl set-hostname stream-alphaliveRecommended providers: Hetzner CX21 (~€4/mo), DigitalOcean Basic ($12/mo), Vultr Cloud Compute ($12/mo).
Choose a datacenter region close to your primary audience for lowest latency.
02
# UFW firewall rules
ufw allow 22/tcp # SSH
ufw allow 80/tcp # HTTP (HLS + certbot)
ufw allow 443/tcp # HTTPS (HLS after TLS)
ufw allow 1935/tcp # RTMP ingest
ufw enable
ufw statusIf your VPS provider has a separate cloud firewall (DigitalOcean Firewall, Hetzner Firewall), add the same rules there too — UFW alone may not be enough.
03
04
05
06
07
08
09