feat: add API key authentication for /v1/* endpoints

This commit is contained in:
董飞祥
2026-01-13 16:46:31 +08:00
parent d1be2e2c1d
commit 6172f5ef10
4 changed files with 37 additions and 0 deletions

View File

@@ -11,6 +11,9 @@
"Restart server after making changes"
],
"apiKey": "",
"_apiKey_comment": "Optional API key to protect /v1/* endpoints. Can also use API_KEY env var.",
"webuiPassword": "",
"_webuiPassword_comment": "Optional password to protect WebUI. Can also use WEBUI_PASSWORD env var.",