aethex-live-v2/DEPLOY.md
2026-03-21 08:26:56 +00:00

971 B

AeThex LIVE — VPS Deployment Guide

Prerequisites

  • Node 20+ on VPS
  • PM2: npm i -g pm2
  • FFmpeg: apt install ffmpeg
  • Nginx + Certbot already running (you have this)
  • Port 1935 open: ufw allow 1935/tcp

1. Clone & install

cd /var/www
git clone https://git.aethex.tech/AeThex-Labs/aethex-live-v2.git
cd aethex-live-v2
npm install

2. Environment

cp .env.example .env.local
nano .env.local

Fill in:

  • YOUTUBE_API_KEY — get from Google Cloud Console
  • ANTHROPIC_API_KEY — optional, server-side KAEL

3. Build

npm run build

4. PM2

mkdir -p /var/log/aethex-live
# Update cwd in ecosystem.config.js to /var/www/aethex-live-v2
PORT=3010 pm2 start server.js --name aethex-live
pm2 save

5. OBS Setup

  • Server: rtmp://aethex.live:1935/live
  • Key: stream

Useful commands

pm2 logs aethex-live
pm2 restart aethex-live
ss -tlnp | grep 1935