docs(configs.md): add ip address filtering to docs

This commit is contained in:
Krrish Dholakia 2024-07-08 21:59:26 -07:00
parent 5d12072cc0
commit e4105a6959
4 changed files with 30 additions and 3 deletions

View file

@ -639,6 +639,36 @@ curl --location 'http://0.0.0.0:4000/chat/completions' \
}'
```
## ✨ IP Address Filtering
:::info
You need a LiteLLM License to unlock this feature. [Grab time](https://calendly.com/d/4mp-gd3-k5k/litellm-1-1-onboarding-chat), to get one today!
:::
Restrict which IP's can call the proxy endpoints.
```yaml
general_settings:
allowed_ips: ["192.168.1.1"]
```
**Expected Response** (if IP not listed)
```bash
{
"error": {
"message": "Access forbidden: IP address not allowed.",
"type": "auth_error",
"param": "None",
"code": 403
}
}
```
## Disable Swagger UI
To disable the Swagger docs from the base url, set

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long