-
-
Notifications
You must be signed in to change notification settings - Fork 99
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
[FEATURE SUGGESTION] Add a Basic or Bearer 'Authorization' header to Ollama API requests #106
Comments
Hey, thanks for this great idea! Is there an API key on Ollama? |
@n4ze3m no ollama doesnt not have any auth built it. |
I will add an option in the advanced URL configuration for the headers :) |
Here is my nginx configuration to add an Authorization Basic header in the request to the Ollama API. I use Apache's htpasswd to manage HTTP users. server {
...
location @reverse_proxy {
...
proxy_set_header Authorization $http_authorization;
proxy_pass_header Authorization;
proxy_pass_request_headers on;
...
}
...
auth_basic "Administrator’s Area";
auth_basic_user_file /etc/apache2/.htpasswd;
...
} The HTTP header:
The hash is the concatenation of |
@n4ze3m No Ollama does not integrate API key management but using Authorization headers in reverse proxy can be an interesting alternative. |
Any update? Need this feature badly... |
I will add an option to pass custom headers in the next version (v1.1.14), which will be released on Monday or Tuesday. |
Currently, requests to the Ollama API do not include an 'Authorization' header. To strengthen the security of API calls, it is necessary to add an 'Authorization' header with Basic or Bearer authentication.
Tasks to complete:
The text was updated successfully, but these errors were encountered: