backend/.env.example
Set these on your host before deploying. Each platform has an “Environment Variables” section in the deploy flow. (showing first 20, more exist in backend/.env.example)
FLASK_ENV
Flask 配置
SECRET_KEY
secret
AI_PROVIDER_FORMAT
AI Provider 配置 (openai 或 gemini)
TEXT_MODEL
AI 模型配置
LLM_MAX_TOKENS
secret
OPENAI_API_KEY
secret
OpenAI 兼容 API 配置
OPENAI_API_BASE
secret
LOG_LEVEL
日志级别
CORS_ORIGINS
CORS 配置
NANO_BANANA_API_KEY
secret
Nano Banana Pro API(用于 AI 封面图生成)
NANO_BANANA_API_BASE
NANO_BANANA_MODEL
ZAI_SEARCH_API_KEY
secret
智谱 Web Search API(用于深度调研)
ZAI_SEARCH_API_BASE
ZAI_SEARCH_ENGINE
ZAI_SEARCH_MAX_RESULTS
ZAI_SEARCH_CONTENT_SIZE
ZAI_SEARCH_RECENCY_FILTER
MINERU_TOKEN
secret
MinerU PDF 解析 API(用于文档解析)
MINERU_API_BASE
brew install flyctl && fly launch --from https://github.com/datawhalechina/vibe-blog
curl -L https://fly.io/install.sh | sh && fly launch --from https://github.com/datawhalechina/vibe-blog
iwr https://fly.io/install.ps1 -useb | iex; fly launch --from https://github.com/datawhalechina/vibe-blog