Checklist lengkap agar pipeline berjalan sempurna
| ✅ Dashboard HTML (49KB) | TERDEPLOY |
| ✅ Pipeline PHP Backend | TERDEPLOY |
| ✅ Pipeline Python Script | TERDEPLOY |
| ✅ FFmpeg | INSTALLED (v6.1.1) |
| ✅ Python 3.3.2 | INSTALLED |
| ✅ requests | INSTALLED |
| ❌ edge-tts | BELUM INSTALL |
| ❌ replicate | BELUM INSTALL |
| ❌ python-dotenv | BELUM INSTALL |
| ❌ .env (API keys) | BELUM DIBUAT |
| ❌ Nginx /pipeline/output/ | BELUM CONFIG |
| ❌ Replicate API Token | BELUM DAFTAR |
Replicate menyediakan API FLUX (gambar) dan Wan2.1 (video). Bayar per use, no subscription.
# Buka browser, daftar di:
https://replicate.com
# Setelah daftar:
# 1. Klik "Account" (kanan atas)
# 2. Klik "API tokens"
# 3. Klik "Create token"
# 4. Copy token (format: r8_xxxxx)
# 5. Top up credits minimal $5 (untuk 500+ gambar)3 package Python yang dibutuhkan pipeline.
# SSH ke VPS
ssh -i ~/.ssh/id_ed25519_to_204 ubuntu@43.157.204.29
# Install dependencies
pip3 install edge-tts replicate python-dotenv requests
# Verify
python3 -c "import edge_tts, replicate, dotenv; print('ALL OK')"Simpan API token di file .env supaya aman.
# Buat file .env
cat > /var/www/ai-bisnis.my.id/pipeline/.env <<'EOF'
# Panorama Digital AI - Video Pipeline Config
# Generated: 2026-08-30
# Replicate API (untuk FLUX + Wan2.1)
REPLICATE_API_TOKEN=r8_TOKEN_DARI_STEP_1
# WhatsApp (opsional, untuk notifikasi)
WHATSAPP_NUMBER=6282112685085
EOF
# Restrict permissions
chmod 600 /var/www/ai-bisnis.my.id/pipeline/.env
chown www-data:www-data /var/www/ai-bisnis.my.id/pipeline/.env
# Verify
cat /var/www/ai-bisnis.my.id/pipeline/.envr8_TOKEN_DARI_STEP_1 dengan token asli dari Replicate!
Agar video hasil pipeline bisa diakses via URL.
# Tambah location block ke nginx config
sudo sed -i '/server_name ai-bisnis.my.id;/a\\
\\n # Pipeline output\\
\\n location /pipeline/output/ {\\
\\n alias /var/www/ai-bisnis.my.id/pipeline/output/;\\
\\n autoindex off;\\
\\n add_header Access-Control-Allow-Origin *;\\
\\n }' /etc/nginx/sites-enabled/ai-bisnis.my.id
# Test config
sudo nginx -t
# Reload
sudo systemctl reload nginxhttps://ai-bisnis.my.id/pipeline/output/final_xxx.mp4
Jalankan pipeline 1 video untuk memastikan semuanya jalan.
# Buka dashboard
https://ai-bisnis.my.id/ide/video-ai-dashboard.html
# Klik tab "⚡ Pipeline Mode"
# Pilih: Umroh → Fernando → 1 Video
# Klik "🚀 Mulai Pipeline"
# Tunggu ~2-3 menit
# Cek hasil di Gallerycat /var/www/ai-bisnis.my.id/pipeline/tasks/pipeline_*.json
Setelah test run, pastikan semua bekerja:
# Cek task files
ls -la /var/www/ai-bisnis.my.id/pipeline/tasks/
# Cek output videos
ls -la /var/www/ai-bisnis.my.id/pipeline/output/
# Cek via API
curl -s https://ai-bisnis.my.id/ide/api/pipeline.php?action=list | python3 -m json.tool
# Cek via URL (setelah nginx config)
curl -sI https://ai-bisnis.my.id/pipeline/output/final_xxx.mp4| Replicate credits (top up) | $5 |
| Edge TTS (voiceover) | GRATIS |
| FFmpeg (assembly) | GRATIS |
| VPS (sudah ada) | $0 tambahan |
| Total Setup | $5 |
Jika sudah daftar Replicate dan punya token, jalankan semua command ini sekaligus:
# 1. SSH ke VPS
ssh -i ~/.ssh/id_ed25519_to_204 ubuntu@43.157.204.29
# 2. Install deps + buat .env + config nginx (ganti TOKEN)
pip3 install edge-tts replicate python-dotenv && \
echo "REPLICATE_API_TOKEN=r8_GANTI_DENGAN_TOKEN_ANDA" | sudo tee /var/www/ai-bisnis.my.id/pipeline/.env && \
sudo chmod 600 /var/www/ai-bisnis.my.id/pipeline/.env && \
sudo sed -i '/server_name ai-bisnis.my.id;/a\\n location /pipeline/output/ { alias /var/www/ai-bisnis.my.id/pipeline/output/; autoindex off; }' /etc/nginx/sites-enabled/ai-bisnis.my.id && \
sudo nginx -t && sudo systemctl reload nginx && \
echo "✅ SETUP SELESAI!"