Document deployment proxy token
This commit is contained in:
@@ -65,12 +65,15 @@ These can be overridden with CLI flags or environment variables:
|
||||
- `--port` or `PORT`
|
||||
- `--proxy-api-key` or `PROXY_API_KEY`
|
||||
|
||||
For mass deployments, set `PROXY_API_KEY` to the token generated by the deployment system. The
|
||||
app will use that token as the required `Authorization: Bearer ...` value.
|
||||
|
||||
## Verify
|
||||
|
||||
```bash
|
||||
curl -s http://localhost:3000/api/healthz
|
||||
curl -s http://localhost:3000/dashboard | head
|
||||
curl -s -H "Authorization: Bearer dev-proxy-key" http://localhost:3000/v1/models
|
||||
curl -s -H "Authorization: Bearer ${PROXY_API_KEY:-dev-proxy-key}" http://localhost:3000/v1/models
|
||||
```
|
||||
|
||||
Expected without provider flags: dashboard, health, and model list work; chat completions return `503`.
|
||||
|
||||
Reference in New Issue
Block a user