aboutsummaryrefslogtreecommitdiff
path: root/template/nginx/websocket.conf
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2022-11-21 11:16:58 +0800
committercrupest <crupest@outlook.com>2022-11-21 11:16:58 +0800
commit75daeed5c74ae0c50eb77939352c889e947a3675 (patch)
treed7e074331f7f8fe8aef0a725b2d379310920ce91 /template/nginx/websocket.conf
parent0f8f5d3ad0506e0629e08492ed49eb845fd3cc35 (diff)
downloadcrupest-75daeed5c74ae0c50eb77939352c889e947a3675.tar.gz
crupest-75daeed5c74ae0c50eb77939352c889e947a3675.tar.bz2
crupest-75daeed5c74ae0c50eb77939352c889e947a3675.zip
Optimize nginx reverse-proxy template.
Diffstat (limited to 'template/nginx/websocket.conf')
-rw-r--r--template/nginx/websocket.conf6
1 files changed, 3 insertions, 3 deletions
diff --git a/template/nginx/websocket.conf b/template/nginx/websocket.conf
index ac56b69..32af4c3 100644
--- a/template/nginx/websocket.conf
+++ b/template/nginx/websocket.conf
@@ -1,4 +1,4 @@
-map $http_connection $connection_upgrade {
- "~*Upgrade" $http_connection;
- default keep-alive;
+map $http_upgrade $connection_upgrade {
+ default upgrade;
+ '' close;
}