From 5e595c21e259668baaff9b89a90d75b01b50a980 Mon Sep 17 00:00:00 2001 From: Kakious Date: Tue, 12 Nov 2024 09:38:55 -0500 Subject: [PATCH] fix: properly proxy the websocket for the frontend dev --- configs/nginx-dev.conf | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/configs/nginx-dev.conf b/configs/nginx-dev.conf index 6445512..22810f4 100644 --- a/configs/nginx-dev.conf +++ b/configs/nginx-dev.conf @@ -41,6 +41,11 @@ http { resolver 127.0.0.11 valid=30s; # Docker DNS proxy_pass http://host.docker.internal:3000/; # Local back end proxy_redirect default; + + proxy_http_version 1.1; + proxy_set_header Upgrade $http_upgrade; + proxy_set_header Connection "Upgrade"; + proxy_set_header Host $host; } } } \ No newline at end of file