ubuntu-nodesrv
v0.1.2-beta
Published
Simple system service management and http reverse proxy
Downloads
16
Readme
nodesrv for Ubuntu
Simple system service management and http reverse proxy.
Installation
npm install ubuntu-nodesrv -g && sudo nodesrv --installCreate services
nodesrv example.com create creates a service for /var/www/example.com/app.js
Control services
nodesrv example.com startto start a service,nodesrv example.com stopto stop a service andnodesrv example.com statusto see if a service is running.
HTTP reverse proxy
Start or stop the service using service nodesrv start and stop.
Edit /etc/nodesrv.conf to add, change or remove hostnames or port mappings:
{
"basedir": "/var/www/",
"hosts": {
"example.com": 8001,
"www.example.com": 8001,
"example2.com": 8002
}
}The proxy is able to handle WebSocket upgrade requests properly.
License
MIT
