This commit is contained in:
Dallas Lu 2026-06-09 14:41:15 +08:00
parent c50569d73e
commit a624163120
No known key found for this signature in database
27 changed files with 215 additions and 6 deletions

View file

@ -1,3 +1,8 @@
# nginx defaults to proxying with HTTP/1.0. Websocket upgrade requires 1.1, so
# keep that here instead of in the generic forwarded.conf snippet.
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $connection_upgrade;
# Use the mapped value from http/websocket-map.conf so non-upgrade requests can
# still close cleanly instead of always advertising "Connection: upgrade".
proxy_set_header Connection $connection_upgrade;