Open tamis-laan opened 3 years ago
What I don't understand is that the front end browser-sync script doesn't use window.location.origin
for the websocket to connect back?
Then it wouldn't try to connect to localhost:4000
.
No way to get his working?
I'm using browser-sync in proxy mode inside a docker container, trying to then move through a ssh reverse tunnel.
My server then redirects trafic from
mycoolwebsite.xyz
to port 4000 which is then tunneled back to the docker container.This works, except for the browser-sync websocket which is trying to connect back too
localhost:4000
producing the following error:It should connect back to
mycoolwebsite.xyz
and go through the reverse tunnel instead :-(