0.1.1 • Published 6 years ago

hipc v0.1.1

Weekly downloads
-
License
ISC
Repository
-
Last release
6 years ago

hipc - http ipc

var hipc = require('hipc');

hipc(function (req, res) {
    console.log(req.method, req.url);
    res.end("IPC OK: " + req.url);
}).listen('/tmp/app.socket');

listen options / опции

  • autoClose - close on process exit / закрывать сервер при выходе из процесса
  • chmod - set chmod file after listen / установить chmod после запуска сервера
  • onclose - callback before exit / callback перед выходом
  • path - ipc path / путь к файлу

nginx conf

server {
	listen 80;
	server_name ipc.domain.com;
	location / {
		proxy_pass http://unix:/tmp/app.socket:/;
	}
}
0.2.0

6 years ago

0.1.1

6 years ago

0.1.0

6 years ago