From 53b935c5c7d020e57b5c40b2a00df48fe1bbc0bb Mon Sep 17 00:00:00 2001 From: yaso Date: Sat, 25 Jan 2025 13:24:26 +0200 Subject: [PATCH] . --- nginx/nginx.conf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nginx/nginx.conf b/nginx/nginx.conf index 963c8deb..83fb078d 100644 --- a/nginx/nginx.conf +++ b/nginx/nginx.conf @@ -154,7 +154,7 @@ http { proxy_request_buffering off; # Web Api - location /api/ { + location / { # Handle preflight OPTIONS requests if ($request_method = OPTIONS ) { # Add CORS headers for preflight request @@ -172,7 +172,7 @@ http { add_header 'Access-Control-Allow-Headers' '*'; - proxy_pass http://MIH-AI:11434/api/; + proxy_pass http://MIH-AI:11434/; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;