fix: auth_mode error in health check end point

- Change AUTH_USERNAME/PASSWORD to AUTH_ACCOUNTS format
- Update docs for new auth configuration
This commit is contained in:
yangdx
2025-03-27 13:24:14 +08:00
parent c22076b5aa
commit 987cb585e7
3 changed files with 5 additions and 7 deletions

View File

@@ -203,8 +203,7 @@ LightRAG API Server implements JWT-based authentication using HS256 algorithm. T
```bash
# For jwt auth
AUTH_USERNAME=admin # login name
AUTH_PASSWORD=admin123 # password
AUTH_ACCOUNTS='admin:admin123,user1:pass456' # login name and password, separated by comma
TOKEN_SECRET=your-key # JWT key
TOKEN_EXPIRE_HOURS=4 # expire duration
```