.env.example 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. # Copy this file to .env and fill in the values.
  2. # NEVER commit .env to version control.
  3. # ── Database ──────────────────────────────────────────────────────────────────
  4. POSTGRES_USER=vidreview
  5. POSTGRES_PASSWORD=<change-me>
  6. POSTGRES_DB=vidreview
  7. DATABASE_URL=postgresql://vidreview:<change-me>@postgres:5432/vidreview
  8. # ── Auth ─────────────────────────────────────────────────────────────────────
  9. # Generate a strong secret: openssl rand -hex 64
  10. JWT_SECRET=<change-me>
  11. JWT_EXPIRES_IN=7d
  12. # ── Server ─────────────────────────────────────────────────────────────────────
  13. API_PORT=3001
  14. NODE_ENV=production
  15. UPLOAD_DIR=/app/uploads
  16. MAX_FILE_SIZE_MB=500
  17. # ── Caddy Ports ─────────────────────────────────────────────────────────────────
  18. CADDY_HTTP_PORT=80
  19. CADDY_HTTPS_PORT=443
  20. # ── CORS / Domain ──────────────────────────────────────────────────────────────
  21. # Comma-separated list of allowed origins (no spaces)
  22. ALLOWED_ORIGINS=https://your-domain.com,http://localhost
  23. FRONTEND_URL=https://your-domain.com
  24. # ── Email (Resend) ─────────────────────────────────────────────────────────────
  25. # Optional. Leave blank to disable invite emails.
  26. RESEND_API_KEY=
  27. # ── Admin (used by init container on fresh deploy only) ────────────────────────
  28. ADMIN_EMAIL=admin@vidreview.local
  29. ADMIN_NAME=Admin
  30. # ── Worker ─────────────────────────────────────────────────────────────────────
  31. POLL_INTERVAL_MS=2000