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)
LLM_API_KEY
secret
LLM_BASE_URL
LLM_MODEL
IMG_API_KEY
secret
IMG_MODEL
IMG_BASE_URL
TAVILY_API_KEY
secret
Tavily 搜索
BACKEND_HOST
服务配置(可选,有默认值)
BACKEND_PORT
CORS_ORIGINS
JWT_SECRET
secret
JWT 密钥(生产环境必须改成长随机串)
JWT_EXPIRE_HOURS
secret
FREE_LLM_TOTAL
免费额度配置(每用户总量,用完即止)
FREE_SEARCH_TOTAL
FREE_IMAGE_TOTAL
SMTP_HOST
SMTP 邮件配置(邮箱验证码登录)
SMTP_PORT
SMTP_USER
SMTP_PASSWORD
secret
SMTP_FROM_NAME
brew install flyctl && fly launch --from https://github.com/tencent/wesmartflow
curl -L https://fly.io/install.sh | sh && fly launch --from https://github.com/tencent/wesmartflow
iwr https://fly.io/install.ps1 -useb | iex; fly launch --from https://github.com/tencent/wesmartflow