更新 nginx.conf
This commit is contained in:
25
nginx.conf
25
nginx.conf
@@ -51,23 +51,14 @@ http {
|
||||
index index.html index.htm;
|
||||
try_files $uri $uri/ /index.html;
|
||||
}
|
||||
}
|
||||
server {
|
||||
listen 20083;
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
||||
location /ollama {
|
||||
proxy_pass http://10.8.105.26:11434/; #看这里
|
||||
} #
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user