Merge "修改nginx.conf"
diff --git a/nginx.conf b/nginx.conf
index c9ea645..615f66d 100644
--- a/nginx.conf
+++ b/nginx.conf
@@ -3,9 +3,18 @@
server_name team12.10813352.xyz; # 替换为你的域名
location /api {
- proxy_pass http://localhost:12138;
+ proxy_pass http://localhost:12138/;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
+
+ # 长连接支持
+ proxy_http_version 1.1;
+ proxy_set_header Connection "";
+
+ # 超时设置
+ proxy_connect_timeout 60s;
+ proxy_send_timeout 60s;
+ proxy_read_timeout 60s;
}
}
\ No newline at end of file