.env.example 2.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. # SaaS Platform Environment Configuration Template
  2. # Copy this file to .env and update the values
  3. # ============================================
  4. # DEPLOYMENT MODE
  5. # ============================================
  6. NODE_ENV=production
  7. # ============================================
  8. # PORT CONFIGURATION
  9. # ============================================
  10. # Nginx Gateway
  11. HTTP_PORT=80
  12. HTTPS_PORT=443
  13. # Database
  14. POSTGRES_PORT=5432
  15. # Redis
  16. REDIS_PORT=6379
  17. # ============================================
  18. # DATABASE CONFIGURATION
  19. # ============================================
  20. POSTGRES_DB=saas_platform
  21. POSTGRES_USER=saas_user
  22. POSTGRES_PASSWORD=CHANGE_ME_RANDOM_PASSWORD_HERE
  23. # ============================================
  24. # REDIS CONFIGURATION
  25. # ============================================
  26. REDIS_PASSWORD=CHANGE_ME_RANDOM_PASSWORD_HERE
  27. # ============================================
  28. # JWT CONFIGURATION
  29. # ============================================
  30. JWT_SECRET=CHANGE_ME_RANDOM_SECRET_HERE
  31. JWT_EXPIRES_IN=15m
  32. REFRESH_TOKEN_EXPIRES_IN=7d
  33. # ============================================
  34. # DOMAIN CONFIGURATION
  35. # ============================================
  36. # Production domain (set by deploy.sh)
  37. DOMAIN=example.com
  38. CONSOLE_DOMAIN=console.example.com
  39. # ============================================
  40. # MINIO CONFIGURATION (S3-compatible storage)
  41. # ============================================
  42. MINIO_ROOT_USER=CHANGE_ME_RANDOM_ACCESS_KEY
  43. MINIO_ROOT_PASSWORD=CHANGE_ME_RANDOM_SECRET_KEY
  44. MINIO_ENDPOINT=minio
  45. MINIO_PORT=9000
  46. MINIO_USE_SSL=false
  47. # ============================================
  48. # SMTP CONFIGURATION (Email sending)
  49. # ============================================
  50. SMTP_HOST=smtp.example.com
  51. SMTP_PORT=587
  52. SMTP_SECURE=false
  53. SMTP_USER=noreply@example.com
  54. SMTP_PASSWORD=CHANGE_ME_SMTP_PASSWORD
  55. SMTP_FROM_EMAIL=noreply@example.com
  56. SMTP_FROM_NAME=SaaS Platform
  57. # ============================================
  58. # LET'S ENCRYPT CONFIGURATION
  59. # ============================================
  60. # Email for Let's Encrypt notifications (set by deploy.sh)
  61. LETSENCRYPT_EMAIL=admin@example.com
  62. # ============================================
  63. # MONITORING CONFIGURATION
  64. # ============================================
  65. GRAFANA_ADMIN_PASSWORD=CHANGE_ME_RANDOM_PASSWORD
  66. PGADMIN_DEFAULT_EMAIL=admin@example.com
  67. PGADMIN_DEFAULT_PASSWORD=CHANGE_ME_RANDOM_PASSWORD
  68. # ============================================
  69. # MCP SERVER CONFIGURATION
  70. # ============================================
  71. SAAS_API_URL=https://console.${DOMAIN:-example.com}
  72. SAAS_AUTH_URL=https://console.${DOMAIN:-example.com}/auth
  73. SAAS_STORAGE_URL=https://console.${DOMAIN:-example.com}/storage
  74. # ============================================
  75. # SECURITY NOTES
  76. # ============================================
  77. # 1. Generate random passwords using: openssl rand -base64 32
  78. # 2. Keep this file secure: chmod 600 .env
  79. # 3. Never commit .env to version control
  80. # 4. Backup this file in a secure location