Rehash code now looks for changes to the 'server' param rather than ports/ssl certs etc to reflect OLD changes in the configuration file format.
The configuration file now uses the term "insecure" rather than "secure" to encourage people running KiwiIRC to run secure a secure service.
_.each(servers, function (server) {
var hs, opts;
- if (server.secure === true) {
+ if (server.insecure !== true) {
// Start some SSL server up
opts = {
key: fs.readFileSync(__dirname + '/' + server.ssl_key),
kiwi.log('%s config changes: \n', Object.keys(changes).length, changes);
for (i in changes) {
switch (i) {
- case 'ports':
- case 'bind_address':
- case 'ssl_key':
- case 'ssl_cert':
+ case 'servers':
kiwi.websocketListen(kiwi.config.servers, kiwi.httpHandler);
delete changes.ports;
delete changes.bind_address;
{
"servers": [
{
- "secure": true,
+ "insecure": false,
"port": 7777,
"address": "0.0.0.0",
"ssl_cert": "cert.pem"
},
{
- "secure": false,
+ "insecure": true,
"port": 7778,
"address": "0.0.0.0"
}