- 实现本地认证功能(注册、登录、忘记密码、重置密码) - 添加邮件服务模块支持密码重置 - 新增 Kubernetes 部署配置和文档 - 添加生产环境部署指南和脚本 - 数据库迁移支持本地认证 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
46 lines
1.5 KiB
Bash
46 lines
1.5 KiB
Bash
# ============ Ollama Configuration ============
|
|
# Local Ollama service URL (default port: 11434)
|
|
OLLAMA_PROXY_URL=http://127.0.0.1:11434
|
|
|
|
# Enable Ollama provider
|
|
ENABLED_OLLAMA=1
|
|
|
|
# Optional: Specify custom models (comma separated)
|
|
# OLLAMA_MODEL_LIST=llama2,codellama,mistral,qwen
|
|
|
|
# ============ Database Configuration (for Knowledge Base) ============
|
|
# PostgreSQL with PGVector extension
|
|
DATABASE_URL=postgresql://brunogao@localhost:5432/lingjingwanxiang
|
|
|
|
# Use local PostgreSQL driver (not Neon serverless)
|
|
DATABASE_DRIVER=node
|
|
|
|
# Database encryption key (generated with: openssl rand -base64 32)
|
|
KEY_VAULTS_SECRET=ViDaP5K/rQX0fBY5ggsqupHN4GkQYU95OKO0gieQNkg=
|
|
|
|
# ============ Object Storage (for file uploads) ============
|
|
# MinIO local S3-compatible storage
|
|
S3_ENDPOINT=http://127.0.0.1:9002
|
|
S3_BUCKET=lingjingwanxiang
|
|
S3_PUBLIC_DOMAIN=http://127.0.0.1:9002
|
|
S3_ACCESS_KEY_ID=minioadmin
|
|
S3_SECRET_ACCESS_KEY=minioadmin
|
|
|
|
# ============ Optional: OpenAI (for embeddings) ============
|
|
# Required for knowledge base embeddings
|
|
# OPENAI_API_KEY=sk-your-key-here
|
|
|
|
# ============ Authentication ============
|
|
# NextAuth configuration
|
|
NEXTAUTH_SECRET=iH3sVoHNBBVacCwVijDWk3MSx5E5VZvGua0xy3XGJ2g=
|
|
NEXT_AUTH_SECRET=iH3sVoHNBBVacCwVijDWk3MSx5E5VZvGua0xy3XGJ2g=
|
|
NEXTAUTH_URL=http://localhost:3210
|
|
|
|
# Enable auth (set to 0 for development without auth)
|
|
NEXT_PUBLIC_ENABLE_NEXT_AUTH=0
|
|
|
|
# ============ Development Settings ============
|
|
# Keep as development for builds
|
|
NODE_ENV=development
|
|
PORT=3210
|