From 1c848c727f18fc7fc971410b6443d321bdbf5c38 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BB=84=E5=BB=BA=E6=AD=A6?= Date: Mon, 12 May 2025 16:04:42 +0800 Subject: [PATCH 1/2] =?UTF-8?q?docs:=20=E6=9B=B4=E6=96=B0=20.env.example?= =?UTF-8?q?=20=E6=96=87=E4=BB=B6=E4=B8=AD=E7=9A=84=20TRANSCRIBER=5FTYPE=20?= =?UTF-8?q?=E9=85=8D=E7=BD=AE=E9=80=89=E9=A1=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 调整配置选项的描述,使 groq 成为独立的配置项 -优化注释内容,提高可读性和准确性 --- .env.example | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.env.example b/.env.example index 879c499..157fe83 100644 --- a/.env.example +++ b/.env.example @@ -17,7 +17,7 @@ DATA_DIR=data FFMPEG_BIN_PATH= # transcriber 相关配置 -TRANSCRIBER_TYPE=fast-whisper # fast-whisper/bcut/kuaishou/mlx-whisper/groq(仅Apple平台) +TRANSCRIBER_TYPE=fast-whisper # fast-whisper/bcut/kuaishou/mlx-whisper(仅Apple平台)/groq WHISPER_MODEL_SIZE=base GROQ_TRANSCRIBER_MODEL=whisper-large-v3-turbo # groq提供的faster-whisper 默认为 whisper-large-v3-turbo \ No newline at end of file From 3862c657b7a5d81d59f7d02f6dfd07942a183345 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BB=84=E5=BB=BA=E6=AD=A6?= Date: Mon, 12 May 2025 16:13:05 +0800 Subject: [PATCH 2/2] =?UTF-8?q?build(docker):=20=E6=9B=B4=E6=96=B0=20docke?= =?UTF-8?q?r-compose=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 将 Nginx 容器的端口映射改为使用环境变量 APP_PORT- 移除 frontend 服务的依赖 --- .env.example | 2 +- docker-compose.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.env.example b/.env.example index 157fe83..1107d7d 100644 --- a/.env.example +++ b/.env.example @@ -2,7 +2,7 @@ BACKEND_PORT=8001 FRONTEND_PORT=3015 BACKEND_HOST=0.0.0.0 # 默认为 0.0.0.0,表示监听所有 IP 地址 不建议动 - +APP_PORT= 3015 # docker 部署时用 # 前端访问后端用(生产环境建议写公网或宿主机 IP) VITE_API_BASE_URL=http://127.0.0.1:8001 VITE_SCREENSHOT_BASE_URL=http://127.0.0.1:8001/static/screenshots diff --git a/docker-compose.yml b/docker-compose.yml index 8ef5963..f0472d0 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -29,7 +29,7 @@ services: container_name: bilinote-nginx image: nginx:1.25-alpine ports: - - "80:80" + - "${APP_PORT}:80" volumes: - ./nginx/default.conf:/etc/nginx/conf.d/default.conf depends_on: