mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-25 08:54:10 +00:00
added SSL suport
This commit is contained in:
parent
0d5ead2f1f
commit
f060fdf649
10 changed files with 108 additions and 15 deletions
12
cloudcmd.js
12
cloudcmd.js
|
|
@ -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){
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue