From 598582872148a55891080a1ec0c2332484ead970 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BB=84=E5=BB=BA=E6=AD=A6?= Date: Sun, 13 Jul 2025 10:22:14 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E6=B7=BB=E5=8A=A0=E7=8E=AF=E5=A2=83?= =?UTF-8?q?=E5=8F=98=E9=87=8F=E9=85=8D=E7=BD=AE=E7=A4=BA=E4=BE=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 新增 .env.example 文件,包含项目所需的环境变量配置 - 包括端口配置、生产环境配置、FFMPEG 配置和 transcriber配置等 - 为开发和生产环境提供了默认配置值 --- .env.example | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .env.example diff --git a/.env.example b/.env.example new file mode 100644 index 0000000..3ffa5d1 --- /dev/null +++ b/.env.example @@ -0,0 +1,24 @@ +# 通用端口配置 +BACKEND_PORT=8483# 后端端口 +FRONTEND_PORT=3015 +BACKEND_HOST=0.0.0.0# 默认为 0.0.0.0,表示监听所有 IP 地址 不建议动 +APP_PORT=3015# docker 部署时用 +# 前端访问后端用 (开发环境使用) +VITE_API_BASE_URL=http://127.0.0.1:8483 +VITE_SCREENSHOT_BASE_URL=http://127.0.0.1:8483/static/screenshots +VITE_FRONTEND_PORT=3015 +# 生产环境配置 +ENV=production +STATIC=/static +OUT_DIR=./static/screenshots +NOTE_OUTPUT_DIR=note_results +IMAGE_BASE_URL=/static/screenshots +DATA_DIR=data +# FFMPEG 配置 +FFMPEG_BIN_PATH= + +# transcriber 相关配置 +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