.env.development 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. # Development environment configuration
  2. VITE_BACKEND_URL=http://localhost:9621
  3. VITE_API_PROXY=true
  4. VITE_API_ENDPOINTS=/api,/documents,/graphs,/graph,/health,/query,/docs,/redoc,/openapi.json,/login,/auth-status,/static
  5. # LightRAG WebUI — build-time configuration template.
  6. #
  7. # Primary use case: hosting multiple LightRAG instances on one host behind a
  8. # reverse proxy that routes by site prefix:
  9. # https://host/site01/webui/ → WebUI for instance #1
  10. # https://host/site02/webui/ → WebUI for instance #2
  11. # Each site needs its OWN WebUI build with its own prefix values, because
  12. # Vite STATICALLY REPLACES these into the bundle at build time. There is no
  13. # runtime override yet — see the project root `env.example` for the matching
  14. # backend variables (LIGHTRAG_API_PREFIX / LIGHTRAG_WEBUI_PATH).
  15. #
  16. # How to use:
  17. # - Copy to `.env` (always loaded) or `.env.production` (only loaded for
  18. # `bun run build`), or pass on the command line:
  19. # VITE_API_PREFIX=/site01 VITE_WEBUI_PREFIX=/site01/webui/ bun run build
  20. # - Build output goes to `../lightrag/api/webui/`. To produce one bundle per
  21. # site, build once per site and stash the output (e.g. into a per-site
  22. # container image or a per-site directory mounted by the server).
  23. # Browser-visible URL prefix used as `axios.baseURL`, in `fetch()` template
  24. # strings, and as the iframe `src` for the API docs page.
  25. #
  26. # Must equal the backend `LIGHTRAG_API_PREFIX` for the same site (the prefix
  27. # the reverse proxy strips before forwarding to FastAPI). Empty / "/" → no
  28. # prefix (single-instance / no reverse-proxy deployment).
  29. #
  30. # Example for site01: VITE_API_PREFIX=/site01
  31. # VITE_API_PREFIX=/site01
  32. # Browser-visible URL prefix where the WebUI itself is served. Used as
  33. # Vite's `base` option (asset URL prefix in index.html) and by `<a>` links.
  34. #
  35. # Must equal LIGHTRAG_API_PREFIX + LIGHTRAG_WEBUI_PATH + "/" — i.e. the FULL
  36. # path the user's browser sees, including any reverse-proxy prefix in front
  37. # of the in-app mount path. Trailing "/" is required by Vite; the
  38. # normalization helper enforces it automatically.
  39. #
  40. # Example for site01 (WebUI at https://host/site01/webui/):
  41. # VITE_WEBUI_PREFIX=/site01/webui/
  42. # VITE_WEBUI_PREFIX=/site01/webui/