mirror of
https://github.com/JefferyHcool/BiliNote.git
synced 2026-07-13 00:21:37 +08:00
chore: 添加环境变量配置示例
- 新增 .env.example 文件,包含项目所需的环境变量配置 - 包括端口配置、生产环境配置、FFMPEG 配置和 transcriber配置等 - 为开发和生产环境提供了默认配置值
This commit is contained in:
24
.env.example
Normal file
24
.env.example
Normal file
@@ -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
|
||||
Reference in New Issue
Block a user