Websocket config should be similar to web #176

This commit is contained in:
Bryan Ashby 2018-04-23 19:03:35 -06:00
parent 6e94befd8b
commit a0cd8fed83
3 changed files with 39 additions and 17 deletions

View file

@ -230,11 +230,19 @@ function getDefaultConfig() {
firstMenuNewUser : 'sshConnectedNewUser',
},
webSocket : {
port : 8810, // ws://
enabled : false,
securePort : 8811, // wss:// - must provide certPem and keyPem
certPem : paths.join(__dirname, './../config/https_cert.pem'),
keyPem : paths.join(__dirname, './../config/https_cert_key.pem'),
ws : {
// non-secure ws://
enabled : false,
port : 8810,
},
wss : {
// secure ws://
// must provide valid certPem and keyPem
enabled : false,
port : 8811,
certPem : paths.join(__dirname, './../config/https_cert.pem'),
keyPem : paths.join(__dirname, './../config/https_cert_key.pem'),
},
},
},