.env.example 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. # ─── Application ────────────────────────────────────────────────────
  2. # TMDB API (server-side only — never NEXT_PUBLIC_)
  3. TMDB_API_KEY=your_tmdb_api_key_here
  4. # Supabase (public — browser client)
  5. NEXT_PUBLIC_SUPABASE_URL=http://localhost:8000
  6. NEXT_PUBLIC_SUPABASE_ANON_KEY=your_anon_key_here
  7. # Supabase (server-side — internal Docker network)
  8. SUPABASE_INTERNAL_URL=http://supabase-kong:8000
  9. SUPABASE_SERVICE_ROLE_KEY=your_service_role_key_here
  10. # Master Admin
  11. MASTER_ADMIN_USERNAME=admin
  12. MASTER_ADMIN_TOTP_SECRET=your_base32_totp_secret_here
  13. # Session encryption (32+ characters)
  14. IRON_SESSION_SECRET=this_must_be_at_least_32_characters_long
  15. # Sentry (optional)
  16. NEXT_PUBLIC_SENTRY_DSN=
  17. # ─── Supabase Infrastructure ───────────────────────────────────────
  18. # IMPORTANT: Replace ALL defaults before first docker compose up.
  19. # ANON_KEY and SERVICE_ROLE_KEY must be regenerated from JWT_SECRET.
  20. JWT_SECRET=super-secret-jwt-token-with-at-least-32-characters-long
  21. POSTGRES_PASSWORD=your-super-secret-and-long-postgres-password
  22. ANON_KEY=your_anon_key_here
  23. SERVICE_ROLE_KEY=your_service_role_key_here
  24. # Studio credentials (dev only — Studio bound to 127.0.0.1)
  25. DASHBOARD_USERNAME=supabase
  26. DASHBOARD_PASSWORD=this_password_is_insecure_and_should_be_updated
  27. # Realtime secret (generate a 64+ char random string)
  28. REALTIME_SECRET_KEY_BASE=please-generate-a-64-char-secret-key-base-for-realtime-service!!
  29. # ─── Caddy / Domain ────────────────────────────────────────────────
  30. DOMAIN=localhost
  31. TLS_EMAIL=admin@example.com
  32. # ─── Postgres (optional overrides) ─────────────────────────────────
  33. POSTGRES_USER=supabase_admin
  34. POSTGRES_DB=supabase
  35. # Site URL (for GoTrue redirects)
  36. SITE_URL=http://localhost:3000