fix: properly proxy the websocket for the frontend dev

This commit is contained in:
Kakious 2024-11-12 09:38:55 -05:00
parent 44c5303646
commit 5e595c21e2

View file

@ -41,6 +41,11 @@ http {
resolver 127.0.0.11 valid=30s; # Docker DNS resolver 127.0.0.11 valid=30s; # Docker DNS
proxy_pass http://host.docker.internal:3000/; # Local back end proxy_pass http://host.docker.internal:3000/; # Local back end
proxy_redirect default; proxy_redirect default;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
proxy_set_header Host $host;
} }
} }
} }