mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-24 03:05:41 +00:00
minor changes
This commit is contained in:
parent
9ef11d5b2e
commit
786eeb87be
2 changed files with 7 additions and 5 deletions
|
|
@ -184,8 +184,8 @@
|
|||
|
||||
if(Config.ssl)
|
||||
lParams.ssl = {
|
||||
key : fs.readFileSync(__dirname + '/privatekey.pem'),
|
||||
cert : fs.readFileSync(__dirname + '/certificate.pem')
|
||||
key : fs.readFileSync(DIR + 'ssl/privatekey.pem'),
|
||||
cert : fs.readFileSync(DIR + 'ssl/certificate.pem')
|
||||
};
|
||||
|
||||
server.start(lParams);
|
||||
|
|
|
|||
|
|
@ -80,9 +80,11 @@
|
|||
if (lConfig.server) {
|
||||
var lError = Util.tryCatchLog(function(){
|
||||
if(!lSSL)
|
||||
Server = http.createServer( controller );
|
||||
else
|
||||
Server = https.createServer( lSSL, controller );
|
||||
Server = http.createServer( controller );
|
||||
else{
|
||||
Server = https.createServer( lSSL, controller );
|
||||
Port = 443;
|
||||
}
|
||||
Server.listen(Port, IP);
|
||||
|
||||
var lListen;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue