From 6062e5049714213c7a0c5614f5fae0dbcb2d3791 Mon Sep 17 00:00:00 2001 From: llleixx <75014336+llleixx@users.noreply.github.com> Date: Fri, 19 Sep 2025 13:20:19 +0800 Subject: [PATCH] Enhance Nginx config with WebSocket support --- docs/tutorials/tab-nginx/SelfSigned.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docs/tutorials/tab-nginx/SelfSigned.md b/docs/tutorials/tab-nginx/SelfSigned.md index f6bcf6c8..679990ff 100644 --- a/docs/tutorials/tab-nginx/SelfSigned.md +++ b/docs/tutorials/tab-nginx/SelfSigned.md @@ -26,6 +26,12 @@ Using self-signed certificates is suitable for development or internal use where location / { proxy_pass http://host.docker.internal:3000; + + # Add WebSocket support (Necessary for version 0.5.0 and up) + proxy_http_version 1.1; + proxy_set_header Upgrade $http_upgrade; + proxy_set_header Connection "upgrade"; + proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;