diff --git a/content/docs/how-to-guides/behind-nginx.md b/content/docs/how-to-guides/behind-nginx.md index 48b5263..e7c5fe4 100644 --- a/content/docs/how-to-guides/behind-nginx.md +++ b/content/docs/how-to-guides/behind-nginx.md @@ -19,6 +19,9 @@ server { proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + proxy_http_version 1.1; + proxy_set_header Upgrade $http_upgrade; + proxy_set_header Connection "upgrade"; } # xray-core ws-path: / @@ -57,6 +60,9 @@ server { proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + proxy_http_version 1.1; + proxy_set_header Upgrade $http_upgrade; + proxy_set_header Connection "upgrade"; } } ```