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

@@ -332,6 +332,7 @@ While most users can use the default settings, you can tune the proxy behavior v
### Configurable Options
- **API Key Authentication**: Protect `/v1/*` API endpoints with `API_KEY` env var or `apiKey` in config.
- **WebUI Password**: Secure your dashboard with `WEBUI_PASSWORD` env var or in config.
- **Custom Port**: Change the default `8080` port.
- **Retry Logic**: Configure `maxRetries`, `retryBaseMs`, and `retryMaxMs`.