Files
DDUp/.env.example
lzh 9f1feeb216 feat: 支持本地与生产环境分离配置
- 新增 .gitignore 忽略敏感配置文件
- 新增 .env.local 本地开发环境配置
- 新增 .env.production 生产环境配置
- 新增 docker-compose.prod.yml 生产环境覆盖配置
- 更新 docker-compose.yml 使用 env_file 方式读取配置

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-22 16:15:59 +08:00

37 lines
1.1 KiB
Plaintext
Raw 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.

# Vitals 环境变量配置示例
#
# 项目支持多环境配置:
#
# 本地开发:
# 复制此文件为 .env.local 并修改配置
# 启动: docker-compose up
#
# 生产环境:
# 复制此文件为 .env.production 并修改配置
# 启动: docker-compose -f docker-compose.yml -f docker-compose.prod.yml up -d
#
# ============================================
# 环境标识development | production
ENVIRONMENT=development
# ============================================
# 管理员账户(首次启动时自动创建)
# ============================================
ADMIN_USERNAME=admin
ADMIN_PASSWORD=changeme123
# ============================================
# 安全配置
# ============================================
# JWT 密钥(请使用随机字符串,可用 openssl rand -hex 32 生成)
JWT_SECRET=your_random_secret_key_here
# ============================================
# AI 食物识别(可选,二选一)
# ============================================
# 阿里云通义千问
DASHSCOPE_API_KEY=your_dashscope_api_key_here
# DeepSeek
# DEEPSEEK_API_KEY=your_deepseek_api_key_here