Update README.md

This commit is contained in:
Saifeddine ALOUI 2024-01-16 09:50:56 +01:00 committed by GitHub
parent 0ca483fef0
commit 70d3c2b6cc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 1 deletions

View File

@ -28,11 +28,15 @@ Replace `http://localhost:11434/` with the URL and port of the first server. The
### Authorized users (authorized_users.txt) ### Authorized users (authorized_users.txt)
Create a file named `authorized_users.txt` in the same directory as your script, containing a list of user:key pairs, separated by commas and each on a new line: Create a file named `authorized_users.txt` in the same directory as your script, containing a list of user:key pairs, separated by commas and each on a new line:
```makefile ```text
user1,key1 user1,key1
user2,key2 user2,key2
``` ```
Replace `user1`, `key1`, `user2`, and `key2` with the desired username and API key for each user. Replace `user1`, `key1`, `user2`, and `key2` with the desired username and API key for each user.
You can also use the `ollama_proxy_add_user` utility to add user and generate a key automatically:
```makefile
ollama_proxy_add_user --users_list [path to the authorized `authorized_users.txt` file]
```
## Usage ## Usage
### Starting the server ### Starting the server