refactor: 精简架构,去掉书籍管理,核心 TTS 代理
- 去掉 books/chapters CRUD、SQLAlchemy、SQLite 依赖 - 核心只剩 /api/tts + 智能分段 + 自动重试 - 新增 API_TOKEN 环境变量,管理接口 Bearer Token 鉴权 - 管理接口精简为 preview + config - 前端重写:TTS 试听 + 配置查看 + 接口文档 - Dockerfile/docker-compose 清理,去掉数据库卷
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
version: "3.8"
|
||||
|
||||
services:
|
||||
tts-book-service:
|
||||
tts-proxy:
|
||||
build: .
|
||||
container_name: tts-book-service
|
||||
container_name: tts-proxy
|
||||
ports:
|
||||
- "3333:3333"
|
||||
environment:
|
||||
@@ -11,9 +11,8 @@ services:
|
||||
- MIMO_API_ENDPOINT=${MIMO_API_ENDPOINT:-https://api.xiaomimimo.com/v1/chat/completions}
|
||||
- MIMO_TTS_MODEL=${MIMO_TTS_MODEL:-mimo-v2-audio-tts}
|
||||
- MIMO_VOICE=${MIMO_VOICE:-mimo_default}
|
||||
- SERVER_PORT=3333
|
||||
- API_TOKEN=${API_TOKEN:-}
|
||||
volumes:
|
||||
- tts-data:/app/data
|
||||
- tts-audio:/app/audio
|
||||
deploy:
|
||||
resources:
|
||||
@@ -23,5 +22,4 @@ services:
|
||||
restart: unless-stopped
|
||||
|
||||
volumes:
|
||||
tts-data:
|
||||
tts-audio:
|
||||
|
||||
Reference in New Issue
Block a user