paper-burner/.env.example

80 lines
2.3 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.

# ===========================================
# Paper Burner X - Environment Configuration
# ===========================================
# -------------------- 数据库配置 --------------------
DB_USER=paperburner
DB_PASSWORD=changeme_secure_password
DB_NAME=paperburner
DB_PORT=5432
# -------------------- 服务器配置 --------------------
NODE_ENV=production
PORT=3000
APP_PORT=3000
# -------------------- 认证配置 --------------------
# ⚠️ 重要:请务必修改为强随机密钥
JWT_SECRET=your-super-secret-jwt-key-change-in-production-min-32-chars
JWT_EXPIRES_IN=7d
# ⚠️ 重要API Keys 加密密钥(建议使用不同于 JWT_SECRET 的密钥)
# 如果不设置,将使用 JWT_SECRET 作为后备
ENCRYPTION_SECRET=your-encryption-secret-change-in-production-min-32-chars
# -------------------- CORS 配置 --------------------
# 允许的前端域名,多个用逗号分隔
# 示例: https://yourdomain.com,https://app.yourdomain.com
CORS_ORIGIN=*
# -------------------- OCR API 配置 --------------------
# MinerU OCR 服务
MINERU_API_TOKEN=
# Doc2X OCR 服务
DOC2X_API_TOKEN=
# -------------------- 翻译模型 API 配置 --------------------
# DeepSeek
DEEPSEEK_API_KEY=
# Google Gemini
GEMINI_API_KEY=
# Anthropic Claude
CLAUDE_API_KEY=
# 阿里云通义千问
TONGYI_API_KEY=
# 火山引擎
VOLCANO_API_KEY=
# -------------------- Nginx 配置(可选)--------------------
NGINX_PORT=80
NGINX_SSL_PORT=443
# -------------------- 管理员账户(首次运行)--------------------
# 首次启动时自动创建的管理员账户
ADMIN_EMAIL=admin@paperburner.local
ADMIN_PASSWORD=changeme_admin_password
ADMIN_NAME=Administrator
# -------------------- 其他配置 --------------------
# 部署模式: 'backend' | 'frontend'
DEPLOYMENT_MODE=backend
# 文件上传大小限制MB
MAX_UPLOAD_SIZE=100
# 日志级别: 'error' | 'warn' | 'info' | 'debug'
LOG_LEVEL=info
# -------------------- Admin 统计优化(可选) --------------------
# 管理端统计/趋势接口只读限流窗口(毫秒),默认 60000
ADMIN_READ_LIMIT_WINDOW_MS=60000
# 管理端统计/趋势接口每窗口最大请求数,默认 120
ADMIN_READ_LIMIT_MAX=120
# 管理端统计/趋势接口缓存 TTL毫秒默认 60000
ADMIN_STATS_CACHE_TTL_MS=60000