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 | ||
8baf9099 D |
12 | |
13 | /* | |
14 | * Server listen blocks | |
15 | */ | |
16 | ||
17 | // Do not edit this line! | |
ab15f618 D |
18 | conf.servers = []; |
19 | ||
8baf9099 | 20 | // Example server block |
3be87cdd D |
21 | conf.servers.push({ |
22 | port: 7778, | |
23 | address: "0.0.0.0" | |
24 | }); | |
25 | ||
ab15f618 | 26 | // Example SSL server block |
38da7139 D |
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 | //}); | |
ab15f618 | 35 | |
ab15f618 | 36 | |
8baf9099 D |
37 | |
38 | ||
39 | ||
40 | ||
ab15f618 D |
41 | // Where the client files are |
42 | conf.public_http = "client/"; | |
43 | ||
13d7faa3 | 44 | // Max connections per connection. 0 to disable |
ab15f618 D |
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 | ||
831b41b0 JA |
74 | // Whether to verify IRC servers' SSL certificates against built-in well-known certificate authorities |
75 | conf.reject_unauthorised_certificates = false; | |
ab15f618 D |
76 | |
77 | ||
c6e3ed44 D |
78 | // Whitelisted HTTP proxies |
79 | conf.http_proxies = ["127.0.0.1"]; | |
80 | ||
ab15f618 D |
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 | ||
b65ad8f1 D |
90 | // Base HTTP path to the KIWI IRC client (eg. /kiwi) |
91 | conf.http_base_path = "/kiwi"; | |
92 | ||
ab15f618 D |
93 | |
94 | // Default quit message | |
1360a454 | 95 | conf.quit_message = "http://www.kiwiirc.com/ - A hand-crafted IRC client"; |
ab15f618 D |
96 | |
97 | ||
98 | ||
99 | ||
100 | ||
101 | /* | |
102 | * Do not ammend the below lines unless you understand the changes! | |
103 | */ | |
104 | module.exports.production = conf; |