Commit | Line | Data |
---|---|---|
ab15f618 D |
1 | var conf = {}; |
2 | ||
3 | // Run the Kiwi server under a different user/group | |
4 | conf.user = ""; | |
5 | conf.group = ""; | |
6 | ||
7 | ||
11dbb00f D |
8 | // Log file location |
9 | conf.log = "kiwi.log"; | |
10 | ||
11 | ||
ab15f618 D |
12 | // Server listen blocks |
13 | conf.servers = []; | |
14 | ||
3be87cdd D |
15 | // Example plain-text server block |
16 | conf.servers.push({ | |
17 | port: 7778, | |
18 | address: "0.0.0.0" | |
19 | }); | |
20 | ||
ab15f618 | 21 | // Example SSL server block |
38da7139 D |
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 | //}); | |
ab15f618 | 30 | |
ab15f618 D |
31 | |
32 | // Where the client files are | |
33 | conf.public_http = "client/"; | |
34 | ||
13d7faa3 | 35 | // Max connections per connection. 0 to disable |
ab15f618 D |
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 | ||
831b41b0 JA |
65 | // Whether to verify IRC servers' SSL certificates against built-in well-known certificate authorities |
66 | conf.reject_unauthorised_certificates = false; | |
ab15f618 D |
67 | |
68 | ||
c6e3ed44 D |
69 | // Whitelisted HTTP proxies |
70 | conf.http_proxies = ["127.0.0.1"]; | |
71 | ||
ab15f618 D |
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 | ||
b65ad8f1 D |
81 | // Base HTTP path to the KIWI IRC client (eg. /kiwi) |
82 | conf.http_base_path = "/kiwi"; | |
83 | ||
ab15f618 D |
84 | |
85 | // Default quit message | |
1360a454 | 86 | conf.quit_message = "http://www.kiwiirc.com/ - A hand-crafted IRC client"; |
ab15f618 D |
87 | |
88 | ||
89 | ||
90 | ||
91 | ||
92 | /* | |
93 | * Do not ammend the below lines unless you understand the changes! | |
94 | */ | |
95 | module.exports.production = conf; |