Prioritize OS environment variables over .env file to improve Docker compatibility for the server
This commit is contained in:
@@ -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()
|
||||
|
Reference in New Issue
Block a user