Skip to content

Change socket.io host/port that BrowserSync UI uses? #419

@Codelica

Description

@Codelica

Hello,

Excellent project. :) Just wanted to make sure I'm not overlooking something with the addition of the UI interface. I run local BrowserSync instances that are proxied (via NGINX) to keep my mind straight and the URLs I share w/ others nice and clean. All is fine there.

Now I'm hoping to proxy the UI interfaces as well, however the socket.io connection the UI portion uses seems to be intent on using the port it "knows" BrowserSync is using (e.g. 3000 by default) and the current hostname being browsed. Is there any reasonable way to override that host/port combo used by UI to feed it the name/port of my proxy being used?

Ultimately I'm just after having sets like the following via proxy:

http://sync.foo.com <- BrowserSync
http://sync-ui.foo.com < BrowserSync UI

I can obviously give up proxying things and just open up a bunch of direct ports for everything, but was just curious it there might be an option I'm overlooking.

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions