mirror of
https://github.com/JefferyHcool/BiliNote.git
synced 2026-05-06 20:42:52 +08:00
- 新增 Celery 配置文件 celery_app.py - 创建 note_tasks.py 文件,定义生成笔记的 Celery 任务 - 修改 note_router,使用 Celery 任务异步处理笔记生成 - 重构 bili_downloader 和 youtube_downloader,支持多质量选择和错误处理 - 更新 .env.example,添加 Celery 配置项
40 lines
1.0 KiB
Plaintext
40 lines
1.0 KiB
Plaintext
###
|
||
# @Author: 思诺特 jefferyhcool@gmail.com
|
||
# @Date: 2025-04-14 08:49:59
|
||
# @LastEditors: 思诺特 jefferyhcool@gmail.com
|
||
# @LastEditTime: 2025-04-15 12:18:39
|
||
# @FilePath: \BiliNote\.env.example
|
||
# @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
||
###
|
||
# 通用端口配置
|
||
BACKEND_PORT=8001
|
||
FRONTEND_PORT=3015
|
||
BACKEND_HOST=0.0.0.0
|
||
CELERY_BROKER_URL= #redis 地址
|
||
CELERY_RESULT_BACKEND= #redis 地址
|
||
|
||
# 前端访问后端用(生产环境建议写公网或宿主机 IP)
|
||
VITE_API_BASE_URL=http://127.0.0.1:8001
|
||
VITE_SCREENSHOT_BASE_URL=http://127.0.0.1:8001/static/screenshots
|
||
|
||
# 生产环境配置
|
||
ENV=production
|
||
STATIC=/static
|
||
OUT_DIR=./static/screenshots
|
||
IMAGE_BASE_URL=/static/screenshots
|
||
DATA_DIR=data
|
||
|
||
|
||
# AI 相关配置
|
||
OPENAI_API_KEY=
|
||
OPENAI_API_BASE_URL=
|
||
OPENAI_MODEL=
|
||
DEEP_SEEK_API_KEY=
|
||
DEEP_SEEK_API_BASE_URL=
|
||
DEEP_SEEK_MODEL=
|
||
QWEN_API_KEY=
|
||
QWEN_API_BASE_URL=
|
||
QWEN_MODEL=
|
||
|
||
# FFMPEG 配置
|
||
FFMPEG_BIN_PATH= |