更新 nginx.conf
This commit is contained in:
24
nginx.conf
24
nginx.conf
@@ -23,7 +23,10 @@ http {
|
|||||||
|
|
||||||
sendfile on;
|
sendfile on;
|
||||||
|
|
||||||
keepalive_timeout 65;
|
|
||||||
|
keepalive_timeout 60s;
|
||||||
|
keepalive_requests 10000;
|
||||||
|
#keepalive_timeout 65;
|
||||||
|
|
||||||
server {
|
server {
|
||||||
listen 80;
|
listen 80;
|
||||||
@@ -49,4 +52,23 @@ http {
|
|||||||
try_files $uri $uri/ /index.html;
|
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;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user