.env.example 2.1 KB

1234567891011121314151617181920212223242526272829303132333435
  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. # ── CORS / Domain ──────────────────────────────────────────────────────────────
  18. # Comma-separated list of allowed origins (no spaces)
  19. ALLOWED_ORIGINS=https://your-domain.com,http://localhost
  20. FRONTEND_URL=https://your-domain.com
  21. # ── Email (Resend) ─────────────────────────────────────────────────────────────
  22. # Optional. Leave blank to disable invite emails.
  23. RESEND_API_KEY=
  24. # ── Admin (used by init container on fresh deploy only) ────────────────────────
  25. ADMIN_EMAIL=admin@vidreview.local
  26. ADMIN_NAME=Admin
  27. # ── Worker ─────────────────────────────────────────────────────────────────────
  28. POLL_INTERVAL_MS=2000