qia-server/.env
ddshi e35bd77e06 feat: 初始化后端和认证API
- Express.js + TypeScript
- JWT认证系统 (bcryptjs加密)
- Prisma ORM (SQLite/PostgreSQL)
- Zod输入验证
- express-rate-limit限流

Co-Authored-By: Claude (MiniMax-M2.1) <noreply@anthropic.com>
2026-01-29 15:09:19 +08:00

22 lines
522 B
Bash

# Server
PORT=3000
NODE_ENV=development
# JWT
JWT_SECRET=dev-secret-key-do-not-use-in-production
JWT_EXPIRES_IN=7d
JWT_REFRESH_EXPIRES_IN=30d
# Database (SQLite for local development, PostgreSQL for production)
DATABASE_URL=file:./dev.db
# PostgreSQL (for production - Tencent Cloud)
# DATABASE_URL=postgresql://qia_admin:your-password@postgres.ap-shanghai.myqcloud.com:5432/qia
# DeepSeek AI
DEEPSEEK_API_KEY=sk-xxx
DEEPSEEK_API_URL=https://api.deepseek.com/chat/completions
# CORS
CORS_ORIGIN=http://localhost:5173