added SSL suport

This commit is contained in:
coderaiser 2013-03-04 07:03:26 -05:00
parent 7b6371fd50
commit 75c67fd1d1
10 changed files with 108 additions and 15 deletions

View file

@ -175,12 +175,20 @@
}, 1000);
});
server.start({
var lParams = {
appcache : appCacheProcessing,
minimize : minimize,
rest : rest,
route : route
});
};
if(Config.ssl)
lParams.ssl = {
key : fs.readFileSync(__dirname + '/privatekey.pem'),
cert : fs.readFileSync(__dirname + '/certificate.pem')
};
server.start(lParams);
}
function readConfig(pCallBack){