-
-
Notifications
You must be signed in to change notification settings - Fork 3.2k
feat: IP restriction #6221
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
feat: IP restriction #6221
Conversation
ie: ''' LOCALAI_IP_ALLOWLIST=192.168.1.0/24,10.0.0.1,127.0.0.1 '''
✅ Deploy Preview for localai ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
core/http/utils/IPAllowList.go
Outdated
| @@ -0,0 +1,100 @@ | |||
| package utils | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this looks better placed as ipallowlist.go file inside core/http rather than having it's own utils package.
core/http/utils/IPAllowList_test.go
Outdated
| "testing" | ||
| ) | ||
|
|
||
| func TestIPAllowList(t *testing.T) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
better be consistent with all the other tests in this repository and use ginkgo
|
This PR is stale because it has been open 90 days with no activity. Remove stale label or comment or this will be closed in 10 days. |
ie:
'''
LOCALAI_IP_ALLOWLIST=192.168.1.0/24,10.0.0.1,127.0.0.1 '''
Description
This PR fixes #
Notes for Reviewers
Signed commits