Update the proxy desc

This commit is contained in:
Enrico Ros
2024-05-02 00:09:17 -07:00
parent fbf9120859
commit a0a1a5e3c1
+6 -7
View File
@@ -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;
}
```