Files
wrong-notebook/.env.example
wttwins 1c371739eb fix: 修复标签系统约束并增强前端分析流程诊断能力
## 标签系统修复
## 前端诊断系统
## 超时保护优化
## 增强错题列表年级过滤(支持多种别名)
- 环境变量文档补充 LOG_LEVEL 说明
2025-12-19 13:58:09 +08:00

40 lines
1.3 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.

# 数据库连接地址
# 本地开发通常使用 SQLite,路径相对于 prisma/schema.prisma
DATABASE_URL="file:./dev.db"
# NextAuth 会话加密密钥
# 生产环境必须修改!可以使用 `openssl rand -base64 32` 生成
NEXTAUTH_SECRET="supersecret-dev-secret"
# 应用的基础 URL
# 本地开发通常是 http://localhost:3000
# 生产环境如果使用 Docker 且 IP 不固定,建议注释掉此项并启用 AUTH_TRUST_HOST
# NEXTAUTH_URL="http://localhost:3000"
# 信任 Host 请求头
# 设置为 true 时,NextAuth 会根据请求头自动推断 URL,适合 Docker/PaaS 环境
AUTH_TRUST_HOST=true
# AI 服务提供商配置
# 可选值: "gemini" (默认) 或 "openai"
AI_PROVIDER="gemini"
# OpenAI 配置 (当 AI_PROVIDER="openai" 时需要)
OPENAI_API_KEY=""
OPENAI_BASE_URL="" # 可选,用于兼容的 API 服务
OPENAI_MODEL="gpt-4o" # 可选,默认为 gpt-4o
# Google Gemini 配置 (当 AI_PROVIDER="gemini" 时需要)
GOOGLE_API_KEY=""
GEMINI_BASE_URL="" # 可选,用于自定义 API 地址
GEMINI_MODEL="gemini-2.5-flash" # 可选,默认为 gemini-2.5-flash
# 日志配置
# 日志级别: trace, debug, info, warn, error, fatal
# 开发环境建议使用 debug,生产环境建议使用 info
LOG_LEVEL="debug"
# Database Debugging
# Set to "true" to enable SQL query logging
DEBUG_DB="false"