<script type="text/javascript" src="js/util.js"></script>\r
<script type="text/javascript" src="js/gateway.js"></script>\r
<script type="text/javascript" src="js/front.js"></script>\r
- <script type="text/javascript" src="assets.php?js=jquery.json-2.2.min,util,gateway,front,iscroll"></script>\r
+<script type="text/javascript" src="js/iscroll.js"></script>\r
\r
<?php if(in_array($agent, array("android", "ipad", "iphone", "ipad"))){ ?>\r
<script type="text/javascript" src="js/touchscreen_tweaks.js"></script>\r
--- /dev/null
- "listen_ssl": true,
+ {
+ "port": 7777,
++ "listen_ssl": false,
+ "ssl_key": "server.key",
+ "ssl_cert": "cert.pem",
+ "quit_message": "KiwiIRC",
+ "cap_options": []
+ }
_ = require('./lib/underscore.min.js'),
starttls = require('./lib/starttls.js');
-var config = JSON.parse(fs.readFileSync('config.json', 'ascii'));
++var config = JSON.parse(fs.readFileSync(__dirname+'/config.json', 'ascii'));
+
var ircNumerics = {
RPL_WELCOME: '001',
RPL_ISUPPORT: '005',
};
//setup websocket listener
- var io = ws.listen(7777, {secure: true});
+ if (config.listen_ssl) {
- var io = ws.listen(config.port, {secure: true, key: fs.readFileSync(config.ssl_key), cert: fs.readFileSync(config.ssl_cert)});
++ var io = ws.listen(config.port, {secure: true, key: fs.readFileSync(__dirname+'/'+config.ssl_key), cert: fs.readFileSync(__dirname+'/'+config.ssl_cert)});
+ } else {
+ var io = ws.listen(config.port, {secure: false});
+ }
io.sockets.on('connection', function (websocket) {
websocket.on('irc connect', function (nick, host, port, ssl, callback) {
var ircSocket;