env.example 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. # ===================================
  2. # 数据库配置
  3. # ===================================
  4. # PostgreSQL 数据库连接字符串
  5. DATABASE_URL="postgresql://postgres:123456@localhost:5432/vue3_admin"
  6. # PostgreSQL 数据库密码(用于Docker部署)
  7. POSTGRES_PASSWORD=123456
  8. # ===================================
  9. # 应用配置
  10. # ===================================
  11. # 应用运行环境
  12. NODE_ENV=production
  13. # JWT密钥
  14. JWT_SECRET=your-jwt-secret-key-here
  15. # Session密钥
  16. SESSION_SECRET=your-session-secret-key-here
  17. # ===================================
  18. # 服务端口配置
  19. # ===================================
  20. # 后端API服务端口
  21. API_PORT=6666
  22. # 前端服务端口(Nginx)
  23. WEB_PORT=80
  24. # ===================================
  25. # 文件上传配置
  26. # ===================================
  27. # 上传文件存储路径
  28. UPLOAD_PATH=./server/upload
  29. # 最大文件上传大小(MB)
  30. MAX_FILE_SIZE=100
  31. # ===================================
  32. # 日志配置
  33. # ===================================
  34. # 日志级别 (error, warn, info, debug)
  35. LOG_LEVEL=info
  36. # 日志文件路径
  37. LOG_PATH=./logs
  38. # ===================================
  39. # 邮件配置(可选)
  40. # ===================================
  41. # SMTP服务器配置
  42. SMTP_HOST=smtp.example.com
  43. SMTP_PORT=587
  44. SMTP_USER=your-email@example.com
  45. SMTP_PASS=your-email-password
  46. # ===================================
  47. # 其他配置
  48. # ===================================
  49. # API基础URL
  50. API_BASE_URL=http://localhost:6666/api
  51. # 前端基础URL
  52. WEB_BASE_URL=http://localhost
  53. # 是否启用Swagger文档
  54. ENABLE_SWAGGER=true