From e4105a69597d7d9dc9246dc6de3042d655b8873b Mon Sep 17 00:00:00 2001 From: Krrish Dholakia Date: Mon, 8 Jul 2024 21:59:26 -0700 Subject: [PATCH] docs(configs.md): add ip address filtering to docs --- docs/my-website/docs/proxy/configs.md | 30 +++++++++++++++++++ litellm/proxy/_experimental/out/404.html | 1 - .../proxy/_experimental/out/model_hub.html | 1 - .../proxy/_experimental/out/onboarding.html | 1 - 4 files changed, 30 insertions(+), 3 deletions(-) delete mode 100644 litellm/proxy/_experimental/out/404.html delete mode 100644 litellm/proxy/_experimental/out/model_hub.html delete mode 100644 litellm/proxy/_experimental/out/onboarding.html diff --git a/docs/my-website/docs/proxy/configs.md b/docs/my-website/docs/proxy/configs.md index 00457dbc4d4..ecd82375e55 100644 --- a/docs/my-website/docs/proxy/configs.md +++ b/docs/my-website/docs/proxy/configs.md @@ -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 diff --git a/litellm/proxy/_experimental/out/404.html b/litellm/proxy/_experimental/out/404.html deleted file mode 100644 index 8b76984e5fc..00000000000 --- a/litellm/proxy/_experimental/out/404.html +++ /dev/null @@ -1 +0,0 @@ -404: This page could not be found.LiteLLM Dashboard

404

This page could not be found.

\ No newline at end of file diff --git a/litellm/proxy/_experimental/out/model_hub.html b/litellm/proxy/_experimental/out/model_hub.html deleted file mode 100644 index 84255a5d7bb..00000000000 --- a/litellm/proxy/_experimental/out/model_hub.html +++ /dev/null @@ -1 +0,0 @@ -LiteLLM Dashboard \ No newline at end of file diff --git a/litellm/proxy/_experimental/out/onboarding.html b/litellm/proxy/_experimental/out/onboarding.html deleted file mode 100644 index aa7c91f26ff..00000000000 --- a/litellm/proxy/_experimental/out/onboarding.html +++ /dev/null @@ -1 +0,0 @@ -LiteLLM Dashboard \ No newline at end of file