minor changes

This commit is contained in:
coderaiser 2013-03-04 07:08:12 -05:00
parent 9ef11d5b2e
commit 786eeb87be
2 changed files with 7 additions and 5 deletions

View file

@ -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);

View file

@ -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;