Something went wrong. Try again.
Monorepo for Aesthetic.Computer aesthetic.computer
Something went wrong. Try again.
README.md
# Oven - Video Processing Service for Aesthetic Computer Tapes
## Overview
`oven.aesthetic.computer` is a dedicated DigitalOcean Droplet service for processing tape recordings into MP4 videos. This solves the Netlify Function 250MB size limit issue caused by bundling ffmpeg.
## Quick Deployment
### Deploy to Production
```bash
cd /workspaces/aesthetic-computer/oven
fish deploy.fish
```
This automated script will:
1. ✅ Create DigitalOcean droplet (2GB RAM, 2 vCPU, $18/month)
2. ✅ Install Node.js 24, ffmpeg, and Caddy
3. ✅ Deploy oven service code
4. ✅ Configure HTTPS with automatic certificates
5. ✅ Set up systemd service for auto-restart
6. ✅ Configure DNS (oven.aesthetic.computer)
### Post-Deployment Steps
1. **Update Netlify Environment:**
```bash
# Add to system/.env (for development)
OVEN_URL=https://oven.aesthetic.computer
# Add to Netlify dashboard (for production)
# Site settings → Environment variables
OVEN_URL=https://oven.aesthetic.computer
```
2. **Test the Service:**
```bash
# Health check
curl https://oven.aesthetic.computer/health
# Expected: {"status":"healthy"}
# View dashboard
open https://oven.aesthetic.computer
```
3. **Monitor Logs:**
```bash
ssh -i ~/.ssh/oven-deploy-key root@DROPLET_IP
tail -f /var/log/oven/oven.log
```
## Architecture
### Current Problem
- Netlify Functions have a 250MB size limit
- `ffmpeg-static` (50MB) + `ffprobe-static` + dependencies exceed this limit
- Functions `track-media` and `tape-convert-background` fail to deploy
### Solution
External video processing service on a dedicated server:
```
User uploads tape
↓
aesthetic.computer (Netlify)
↓ POST job to oven
oven.aesthetic.computer (DigitalOcean Droplet)
↓ Download ZIP to /tmp/
↓ Process video with ffmpeg
↓ Upload MP4 + thumbnail to at-blobs-aesthetic-computer/tapes/
↓ POST callback with Spaces URLs
↓ Clean up /tmp/
aesthetic.computer receives callback
↓ Download MP4 from Spaces
↓ Upload blob to ATProto
…