From a0a1a5e3c1aef1891293b2229b5e65a0fcf79f22 Mon Sep 17 00:00:00 2001 From: Enrico Ros Date: Thu, 2 May 2024 00:09:17 -0700 Subject: [PATCH] Update the proxy desc --- docs/config-local-ollama.md | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/docs/config-local-ollama.md b/docs/config-local-ollama.md index 5cfd8de4b..5ed893164 100644 --- a/docs/config-local-ollama.md +++ b/docs/config-local-ollama.md @@ -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; } ```