README
vhost-easy
This library takes all of the ball-ache out of using virtual hosting with express/connect.
It lets you easily spin up multiple web-apps with seperate domains on the same server over HTTP and HTTPS
Usage
Usage is very straightforward
const manager = new require( "vhost-easy" )();
manager.attach({
app : express.static( pathToDir ),
hostname : [ "foobar.dev", "google.com" ],
port : 8080,
});
manager.attach(
app : express.static( pathToDir ),
hostname : "gubbins.dev",
port : 8443,
secure : true,
key : sslKeyData,
cert : sslCertData
});