Is there a possibility to listen a node.js-http server natively on a local unix pipe/socket? (e. g. /var/tmp/http.sock). I want to use it in combination with WebSockets and a reverse proxy.
Because http is based on net, you can use the same options that the net module has. In fact, the http docs explicitly say that you can listen on a unix socket.
var server = http.createServer();
server.listen('/var/tmp/http.sock');
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With