From ad6b36143e1754d518a2ca8f1465131024dceb29 Mon Sep 17 00:00:00 2001 From: yangdx Date: Tue, 4 Nov 2025 10:59:09 +0800 Subject: [PATCH] Update .env loading and add API authentication to RAG evaluator MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit • Load .env from current directory • Support LIGHTRAG_API_KEY auth header • Override=False for env precedence • Add Bearer token to API requests • Enable per-instance .env configs (cherry picked from commit 72db04266755d96fba838e1b54891c6c5ed86deb) --- env.example | 2 ++ 1 file changed, 2 insertions(+) diff --git a/env.example b/env.example index 73f2d7b7..7a41daa4 100644 --- a/env.example +++ b/env.example @@ -50,6 +50,8 @@ OLLAMA_EMULATING_MODEL_TAG=latest # JWT_ALGORITHM=HS256 ### API-Key to access LightRAG Server API +### Use this key in HTTP requests with the 'X-API-Key' header +### Example: curl -H "X-API-Key: your-secure-api-key-here" http://localhost:9621/query # LIGHTRAG_API_KEY=your-secure-api-key-here # WHITELIST_PATHS=/health,/api/*