Skip to content

Commit

Permalink
更新nginx配置
Browse files Browse the repository at this point in the history
  • Loading branch information
HenryJi529 committed Jun 7, 2023
1 parent 040e5e5 commit 2e6a240
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions scripts/deploy/nginx/conf/others.conf
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,11 @@ server {
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection upgrade;
proxy_set_header Host $host;
proxy_set_header Accept-Encoding gzip;
# 这些指令增加Nginx与上游服务器之间的连接超时时间,以确保WebSocket连接不会在因为连接超时而关闭
proxy_read_timeout 60s;
proxy_send_timeout 60s;
}
}
server {
Expand Down

0 comments on commit 2e6a240

Please sign in to comment.