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 | ||
8 | // Server listen blocks | |
9 | conf.servers = []; | |
10 | ||
3be87cdd D |
11 | // Example plain-text server block |
12 | conf.servers.push({ | |
13 | port: 7778, | |
14 | address: "0.0.0.0" | |
15 | }); | |
16 | ||
ab15f618 D |
17 | // Example SSL server block |
18 | conf.servers.push({ | |
19 | port: 7777, | |
20 | address: "0.0.0.0", | |
21 | ||
3be87cdd | 22 | ssl: true, |
ab15f618 D |
23 | ssl_key: "server.key", |
24 | ssl_cert: "cert.pem" | |
25 | }); | |
26 | ||
ab15f618 D |
27 | |
28 | // Where the client files are | |
29 | conf.public_http = "client/"; | |
30 | ||
31 | // Max connections per connection | |
32 | conf.max_client_conns = 5; | |
33 | ||
34 | // Enabled CAP extensions (See ENTER URL TO CAP INFO HERE PLS) | |
35 | conf.cap_options = []; | |
36 | ||
37 | ||
38 | ||
39 | ||
40 | // Directory to find the server modules | |
41 | conf.module_dir = "./kiwi_modules/"; | |
42 | ||
43 | // Which modules to load | |
44 | conf.modules = ["spamfilter", "statistics"]; | |
45 | ||
46 | ||
47 | ||
48 | ||
49 | // WebIRC passwords enabled for this server | |
50 | conf.webirc_pass = { | |
51 | //"irc.network.com": "configured_webirc_password", | |
52 | //"127.0.0.1": "foobar" | |
53 | }; | |
54 | ||
55 | // Some IRCDs require the clients IP via the username/ident | |
56 | conf.ip_as_username = [ | |
57 | "irc.network.com", | |
58 | "127.0.0.1" | |
59 | ]; | |
60 | ||
61 | ||
62 | ||
63 | ||
64 | // Enabled transports for the client to use | |
65 | conf.transports = [ | |
66 | "websocket", | |
67 | "flashsocket", | |
68 | "htmlfile", | |
69 | "xhr-polling", | |
70 | "jsonp-polling" | |
71 | ]; | |
72 | ||
73 | ||
74 | // Default quit message | |
75 | conf.quit_message = "KiwiIRC"; | |
76 | ||
77 | ||
78 | ||
79 | ||
80 | ||
81 | /* | |
82 | * Do not ammend the below lines unless you understand the changes! | |
83 | */ | |
84 | module.exports.production = conf; |