# 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 ```bash cd /var/www git clone https://git.aethex.tech/AeThex-Labs/aethex-live-v2.git cd aethex-live-v2 npm install ``` --- ## 2. Environment ```bash 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 ```bash npm run build ``` --- ## 4. PM2 ```bash 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 ```bash pm2 logs aethex-live pm2 restart aethex-live ss -tlnp | grep 1935 ```