Config files now as a nodejs module
[KiwiIRC.git] / server / config.js
CommitLineData
ab15f618
D
1var conf = {};
2
3// Run the Kiwi server under a different user/group
4conf.user = "";
5conf.group = "";
6
7
8// Server listen blocks
9conf.servers = [];
10
11// Example SSL server block
12conf.servers.push({
13 port: 7777,
14 address: "0.0.0.0",
15
16 secure: true,
17 ssl_key: "server.key",
18 ssl_cert: "cert.pem"
19});
20
21// Example plain-text server block
22conf.servers.push({
23 secure: false,
24 port: 7778,
25 address: "0.0.0.0"
26});
27
28// Where the client files are
29conf.public_http = "client/";
30
31// Max connections per connection
32conf.max_client_conns = 5;
33
34// Enabled CAP extensions (See ENTER URL TO CAP INFO HERE PLS)
35conf.cap_options = [];
36
37
38
39
40// Directory to find the server modules
41conf.module_dir = "./kiwi_modules/";
42
43// Which modules to load
44conf.modules = ["spamfilter", "statistics"];
45
46
47
48
49// WebIRC passwords enabled for this server
50conf.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
56conf.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
65conf.transports = [
66 "websocket",
67 "flashsocket",
68 "htmlfile",
69 "xhr-polling",
70 "jsonp-polling"
71];
72
73
74// Default quit message
75conf.quit_message = "KiwiIRC";
76
77
78
79
80
81/*
82 * Do not ammend the below lines unless you understand the changes!
83 */
84module.exports.production = conf;