fix(docs): websockets in nginx example (#24411)

Co-authored-by: Harrison <frith.harry@gmail.com>
This commit is contained in:
Harrison
2025-12-06 16:28:12 +00:00
committed by GitHub
parent 3c80049192
commit 1109c32891

View File

@@ -32,8 +32,6 @@ server {
# enable websockets: http://nginx.org/en/docs/http/websocket.html
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_redirect off;
# set timeout
@@ -43,6 +41,8 @@ server {
location / {
proxy_pass http://<backend_url>:2283;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
}
# useful when using Let's Encrypt http-01 challenge