Has ability to white-label multiple Views and domains onto single site
Example
see: ./examples/server.js
var http = require('resource-http');// all options are optional and will default to a reasonable value if left unsethttp.listen({ port: 8888, wss: true, // enables websocket server host: 'localhost', root: __dirname + "/public", view: __dirname + "/view", cacheView: true, // caches all local view templates and presenters into memory uploads: false, https: false, // enables https / ssl, requires key, cert, ca autoport: true, // will auto-increment port if port unavailable bodyParser: true, // parse incoming body data automatically, disable for streaming sslRequired: false
Warning:
The nodeinfo and nodeadmin boolean options should not be set to true on unsecured servers, as they may expose sensitive systems information.
,
// redirects all http traffic to https
onlySSL: false, // will only start https server, no http services
noSession: false, // removes all session handling from server
nodeinfo: false, // makes /_info route available for node information
nodeadmin: false, // makes /_iadmin route available for node administration