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