更新 nginx.conf

This commit is contained in:
zhangkaihuai
2025-03-02 13:28:14 +00:00
parent 77c8885d6d
commit fc51fe7cdf

View File

@@ -51,23 +51,14 @@ http {
index index.html index.htm; index index.html index.htm;
try_files $uri $uri/ /index.html; try_files $uri $uri/ /index.html;
} }
}
server { location /ollama {
listen 20083; proxy_pass http://10.8.105.26:11434/; #看这里
server_name localhost; } #
error_page 500 502 503 504 /index.jsp;
charset utf-8;
location / {
index index.html index.htm index.jsp; }
proxy_pass http://10.8.105.26:11434;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Host $host:$server_port;
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root html;
}
}