From 77c8885d6d7546a401bc688cccc546f3b04deba6 Mon Sep 17 00:00:00 2001 From: zhangkaihuai Date: Sun, 2 Mar 2025 12:47:48 +0000 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20nginx.conf?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nginx.conf | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/nginx.conf b/nginx.conf index 7b3267f..d221bee 100644 --- a/nginx.conf +++ b/nginx.conf @@ -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; + } + } + + + }