Skip to content

Commit

Permalink
Update the proxy desc
Browse files Browse the repository at this point in the history
  • Loading branch information
enricoros committed May 2, 2024
1 parent fbf9120 commit a0a1a5e
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions docs/config-local-ollama.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,15 +72,14 @@ Then, edit the nginx configuration file `/etc/nginx/sites-enabled/default` and a

```nginx
location /ollama/ {
proxy_pass http://localhost:11434;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
proxy_set_header Host $host;
proxy_cache_bypass $http_upgrade;
proxy_pass http://127.0.0.1:11434/;
# Disable buffering for the streaming responses
# Disable buffering for the streaming responses (SSE)
proxy_set_header Connection '';
proxy_http_version 1.1;
chunked_transfer_encoding off;
proxy_buffering off;
proxy_cache off;
}
```

Expand Down

0 comments on commit a0a1a5e

Please sign in to comment.