nce-server
v0.1.0
Published
A server extension for nce cms using express
Downloads
3
Readme
NCE server extension
Description
A server extension for nce.
How to install
Install with npm: npm install --save nce-server
Integrate in NCE:
var fs = require("fs");
var NCE = require("nce");
var ExtMgr = require("nce-extension-manager");
var nce = new NCE(/*{
server:{
disableCompression: false,
disableCookieParser: false,
disableSession: false,
sessionSecret: "if not specified the extension create a random one",
http:{
port: 3000,
disabled: false
},
https:{
port: 3001,
key: fs.readSync("path/to/key"),
cert: fs.readSync("path/to/cert"),
disabled: false
}
}
}*/);
extMgr = require("nce-extension-manager")(nce);
extMgr.activateExtension(extMgr);
extMgr.getActivatedExtension("server");
How to use
Just configure this extension and activate it after that.