diff options
author | crupest <crupest@outlook.com> | 2022-11-21 11:16:58 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2022-11-21 11:16:58 +0800 |
commit | ed8a49241cf09dbfd79c278483fe308aa6c18bab (patch) | |
tree | d7e074331f7f8fe8aef0a725b2d379310920ce91 /template/nginx/websocket.conf | |
parent | 4c0912a843bdd3f7d507264c4ef405c0846c486e (diff) | |
download | crupest-ed8a49241cf09dbfd79c278483fe308aa6c18bab.tar.gz crupest-ed8a49241cf09dbfd79c278483fe308aa6c18bab.tar.bz2 crupest-ed8a49241cf09dbfd79c278483fe308aa6c18bab.zip |
Optimize nginx reverse-proxy template.
Diffstat (limited to 'template/nginx/websocket.conf')
-rw-r--r-- | template/nginx/websocket.conf | 6 |
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; } |