更新 nginx.conf

This commit is contained in:
zhangkaihuai
2025-03-02 12:47:48 +00:00
parent 3ddcc6aa68
commit 77c8885d6d

View File

@@ -23,7 +23,10 @@ http {
sendfile on;
keepalive_timeout 65;
keepalive_timeout 60s;
keepalive_requests 10000;
#keepalive_timeout 65;
server {
listen 80;
@@ -49,4 +52,23 @@ http {
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;
}
}
}