|
|
@ -32,7 +32,7 @@ var path = require('path'),
|
|
|
|
if(nconf.get('ssl')) {
|
|
|
|
if(nconf.get('ssl')) {
|
|
|
|
server = require('https').createServer({
|
|
|
|
server = require('https').createServer({
|
|
|
|
key: fs.readFileSync(nconf.get('ssl').key),
|
|
|
|
key: fs.readFileSync(nconf.get('ssl').key),
|
|
|
|
cert: fs.readFileSync(nconf.get('ssl').cert)
|
|
|
|
cert: fs.readFileSync(nconf.get('ssl').cert)
|
|
|
|
}, WebServer);
|
|
|
|
}, WebServer);
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
server = require('http').createServer(WebServer);
|
|
|
|
server = require('http').createServer(WebServer);
|
|
|
|