forked from yaso_meth/mih-project
.
This commit is contained in:
@@ -154,7 +154,7 @@ http {
|
||||
proxy_request_buffering off;
|
||||
|
||||
# Web Api
|
||||
location / {
|
||||
location /api/ {
|
||||
# Handle preflight OPTIONS requests
|
||||
if ($request_method = OPTIONS ) {
|
||||
# Add CORS headers for preflight request
|
||||
@@ -171,7 +171,7 @@ http {
|
||||
add_header 'Access-Control-Allow-Headers' 'Authorization, Content-Type, Access-Control-Allow-Origin, Access-Control-Allow-Methods, Access-Control-Allow-Headers' always;
|
||||
|
||||
|
||||
proxy_pass http://MIH-AI:11434/;
|
||||
proxy_pass http://MIH-AI:11434/api/;
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
|
||||
Reference in New Issue
Block a user