jimeng-free-api/.env.template
2025-08-28 16:38:43 +08:00

45 lines
1.5 KiB
Plaintext
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 即梦 Free API 环境变量配置模板
# 复制此文件为 .env 并填入实际值,或直接在启动时设置环境变量
# ===========================================
# 基础服务配置
# ===========================================
NODE_ENV=production
SERVICE_ID=jimeng-api-prod
SERVICE_NAME=jimeng-free-api-prod
HOST=0.0.0.0
PORT=3301
# 可选手动指定服务器基础URL不设置会自动检测
# BASE_URL=http://your-server-ip:3301
# ===========================================
# MongoDB 数据库配置 (必须设置)
# ===========================================
MONGODB_URL=mongodb://localhost:27017/jimeng-api
# ===========================================
# 火山引擎 TOS 对象存储配置 (必须设置)
# ===========================================
TOS_ACCESS_KEY_ID=your_access_key_id
TOS_ACCESS_KEY_SECRET=your_access_key_secret
TOS_BUCKET_NAME=your_bucket_name
# 可选配置,有默认值
TOS_SELF_DOMAIN=
TOS_REGION=cn-beijing
TOS_ENDPOINT=tos-cn-beijing.volces.com
# ===========================================
# 心跳配置已移除(使用 NeDB 本地存储)
# ===========================================
# ===========================================
# 使用方法:
# ===========================================
# 1. 复制此文件: cp .env.template .env
# 2. 编辑 .env 文件,填入实际的配置值
# 3. 启动服务:
# - PM2: pm2 start ecosystem.config.json --env production
# - Node.js: source .env && node dist/index.js
# - 脚本启动: ./start-node.sh prod