Client: Rudimentry objects for third party use
[KiwiIRC.git] / config.js
1 var conf = {};
2
3 // Run the Kiwi server under a different user/group
4 conf.user = "";
5 conf.group = "";
6
7
8 // Log file location
9 conf.log = "kiwi.log";
10
11
12 // Server listen blocks
13 conf.servers = [];
14
15 // Example plain-text server block
16 conf.servers.push({
17 port: 7778,
18 address: "0.0.0.0"
19 });
20
21 // Example SSL server block
22 //conf.servers.push({
23 // port: 7777,
24 // address: "0.0.0.0",
25 //
26 // ssl: true,
27 // ssl_key: "server.key",
28 // ssl_cert: "cert.pem"
29 //});
30
31
32 // Where the client files are
33 conf.public_http = "client/";
34
35 // Max connections per connection. 0 to disable
36 conf.max_client_conns = 5;
37
38 // Enabled CAP extensions (See ENTER URL TO CAP INFO HERE PLS)
39 conf.cap_options = [];
40
41
42
43
44 // Directory to find the server modules
45 conf.module_dir = "./kiwi_modules/";
46
47 // Which modules to load
48 conf.modules = ["spamfilter", "statistics"];
49
50
51
52
53 // WebIRC passwords enabled for this server
54 conf.webirc_pass = {
55 //"irc.network.com": "configured_webirc_password",
56 //"127.0.0.1": "foobar"
57 };
58
59 // Some IRCDs require the clients IP via the username/ident
60 conf.ip_as_username = [
61 "irc.network.com",
62 "127.0.0.1"
63 ];
64
65 // Whether to verify IRC servers' SSL certificates against built-in well-known certificate authorities
66 conf.reject_unauthorised_certificates = false;
67
68
69 // Whitelisted HTTP proxies
70 conf.http_proxies = ["127.0.0.1"];
71
72 // Enabled transports for the client to use
73 conf.transports = [
74 "websocket",
75 "flashsocket",
76 "htmlfile",
77 "xhr-polling",
78 "jsonp-polling"
79 ];
80
81 // Base HTTP path to the KIWI IRC client (eg. /kiwi)
82 conf.http_base_path = "/kiwi";
83
84
85 // Default quit message
86 conf.quit_message = "http://www.kiwiirc.com/ - A hand-crafted IRC client";
87
88
89
90
91
92 /*
93 * Do not ammend the below lines unless you understand the changes!
94 */
95 module.exports.production = conf;