xbrowsersync / api

Server-side REST API that serves requests from xBrowserSync client apps
GNU General Public License v3.0
783 stars 81 forks source link

Allow connections over Unix Sockets #52

Open Columbus240 opened 3 years ago

Columbus240 commented 3 years ago

I’m trying to self-host xbrowsersync, and except the following nitpick it worked without problems. I wanted to connect xbrowsersync using Unix Sockets to mongodb and to the reverse-proxy (nginx).

Since this approach isn’t documented, and I didn’t look at the code, I don’t know how to do it.

I tried setting the config option db.host to /var/run/mongodb/mongodb-PID.socket but that didn’t work. I didn’t try setting server.host to some path.

This isn’t very important to me, but it would be a nice addition if it were possible to connect xbrowsersync to unix sockets and if the necessary configuration were documented.

By the way, thanks for your work.

Edit: Just to make clear: I now have xbrowsersync talking over one port with nginx and talking over some other port with mongodb.

nero120 commented 3 years ago

@Columbus240 I have no capacity to do this unfortunately. However if you'd like to submit a pull request if you figure it out that would be 👌!

Columbus240 commented 3 years ago

Oops, I pushed the wrong buttons.

No problem. Maybe I or somebody else will do it someday.