Prioritize OS environment variables over .env file to improve Docker compatibility for the server

This commit is contained in:
yangdx
2025-03-21 13:27:12 +08:00
parent 168232803b
commit 67eee2d2d5
4 changed files with 5 additions and 3 deletions

View File

@@ -49,7 +49,7 @@ from .auth import auth_handler
# Load environment variables
# Updated to use the .env that is inside the current folder
# This update allows the user to put a different.env file for each lightrag folder
load_dotenv(".env", override=True)
load_dotenv()
# Initialize config parser
config = configparser.ConfigParser()