fix: properly proxy the websocket for the frontend dev
This commit is contained in:
parent
44c5303646
commit
5e595c21e2
1 changed files with 5 additions and 0 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in a new issue