feat(memoro): add deployment infrastructure and migrate web services to new Hono server

- Dockerfile for audio-server (Bun + ffmpeg)
- docker-compose.macmini.yml entries for memoro-server (3015) and memoro-audio-server (3016)
- Dev commands: dev:memoro:server, dev:memoro:audio-server, dev:memoro:app, dev:memoro:full
- MEMORO_* env vars in .env.development
- web: add PUBLIC_MEMORO_SERVER_URL env var to env.ts and .env.example
- web: rewrite transcriptionService → POST /api/v1/memos (new server path)
- web: rewrite spaceService → /api/v1/spaces/* (aligned with actual Hono routes)
- server: fix callAudioServer param name audioPath (was filePath) in memos.ts

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Till JS 2026-03-31 20:16:54 +02:00
parent 6e0dd0c065
commit 6d2509c258
9 changed files with 359 additions and 789 deletions

View file

@ -420,6 +420,41 @@ CITYCORNERS_BACKEND_PORT=3025
CITYCORNERS_DATABASE_URL=postgresql://manacore:devpassword@localhost:5432/citycorners
CITYCORNERS_WEB_PORT=5196
# ============================================
# MEMORO PROJECT
# ============================================
# Server ports
MEMORO_SERVER_PORT=3015
MEMORO_AUDIO_SERVER_PORT=3016
MEMORO_SERVER_URL=http://localhost:3015
MEMORO_AUDIO_SERVER_URL=http://localhost:3016
# Shared service key (server ↔ audio-server communication)
MEMORO_SERVICE_KEY=dev-memoro-service-key-change-in-prod
# Supabase (Memoro has its own Supabase project)
MEMORO_SUPABASE_URL=https://your-memoro-project.supabase.co
MEMORO_SUPABASE_SERVICE_KEY=your-memoro-supabase-service-role-key
# Azure Speech Services (load-balanced across up to 4 keys)
AZURE_SPEECH_KEY_1=your-azure-speech-key-1
AZURE_SPEECH_KEY_2=
AZURE_SPEECH_KEY_3=
AZURE_SPEECH_KEY_4=
AZURE_SPEECH_REGION=germanywestcentral
AZURE_SPEECH_ENDPOINT=https://germanywestcentral.api.cognitive.microsoft.com
# Azure Blob Storage (for batch transcription jobs)
AZURE_STORAGE_ACCOUNT_NAME=your-storage-account
AZURE_STORAGE_ACCOUNT_KEY=your-storage-account-key
AZURE_STORAGE_CONTAINER=memoro-batch-audio
# Azure OpenAI (headline/Q&A generation fallback)
AZURE_OPENAI_KEY=your-azure-openai-key
AZURE_OPENAI_ENDPOINT=https://memoroseopenai.openai.azure.com/
AZURE_OPENAI_DEPLOYMENT=gpt-4o
# GPU Server (Windows PC with RTX 3090)
GPU_API_KEY=sk-gpu-cf483ede1e05e28fba5e56c94cd3c24e7c245e57816d3e86
GPU_SERVER_URL=https://gpu.mana.how