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 | 37 | |
adefb6bd D |
38 | // Do we want to enable the built in Identd server? |
39 | conf.identd = { | |
40 | enabled: false, | |
41 | port: 113, | |
42 | address: "0.0.0.0" | |
43 | }; | |
44 | ||
45 | ||
46 | ||
8baf9099 D |
47 | |
48 | ||
49 | ||
ab15f618 D |
50 | // Where the client files are |
51 | conf.public_http = "client/"; | |
52 | ||
13d7faa3 | 53 | // Max connections per connection. 0 to disable |
ab15f618 D |
54 | conf.max_client_conns = 5; |
55 | ||
8838bdd6 | 56 | // Max connections per server. 0 to disable. |
8ae445ce JA |
57 | // Setting is ignored if: |
58 | // - There is a WEBIRC password configured for the server, | |
59 | // - Kiwi is configured to send the client's ip as a username for the server, or | |
60 | // - Kiwi is running in restricted server mode. | |
8838bdd6 JA |
61 | conf.max_server_conns = 0; |
62 | ||
d1b3e8b3 VDF |
63 | /* |
64 | * Available encodings supported by the server | |
65 | * As specified and limited to iconv-lite library support. | |
66 | * All upper-case. Default is the first element on the list. | |
67 | */ | |
68 | conf.available_encodings = ['UTF-8', 'WINDOWS-1252']; | |
2eec3842 D |
69 | |
70 | /* | |
71 | * Client side plugins | |
72 | * Array of URLs that will be loaded into the browser when the client first loads up | |
73 | * See http://github.com/prawnsalad/KiwiIRC/wiki/Client-plugins | |
74 | */ | |
75 | conf.client_plugins = [ | |
76 | // "http://server.com/kiwi/plugins/myplugin.html" | |
77 | ]; | |
78 | ||
79 | ||
80 | ||
ab15f618 D |
81 | // Enabled CAP extensions (See ENTER URL TO CAP INFO HERE PLS) |
82 | conf.cap_options = []; | |
83 | ||
84 | ||
85 | ||
86 | ||
87 | // Directory to find the server modules | |
d8002ae0 | 88 | conf.module_dir = "../server_modules/"; |
ab15f618 D |
89 | |
90 | // Which modules to load | |
991091b7 | 91 | conf.modules = []; |
ab15f618 D |
92 | |
93 | ||
94 | ||
95 | ||
96 | // WebIRC passwords enabled for this server | |
97 | conf.webirc_pass = { | |
98 | //"irc.network.com": "configured_webirc_password", | |
99 | //"127.0.0.1": "foobar" | |
100 | }; | |
101 | ||
102 | // Some IRCDs require the clients IP via the username/ident | |
103 | conf.ip_as_username = [ | |
86d127f9 PV |
104 | //"irc.network.com", |
105 | //"127.0.0.1" | |
ab15f618 D |
106 | ]; |
107 | ||
831b41b0 JA |
108 | // Whether to verify IRC servers' SSL certificates against built-in well-known certificate authorities |
109 | conf.reject_unauthorised_certificates = false; | |
ab15f618 D |
110 | |
111 | ||
d99877b8 D |
112 | |
113 | /* | |
114 | * Reverse proxy settings | |
115 | * Reverse proxies that have been reported to work can be found at: | |
116 | * http://github.com/prawnsalad/KiwiIRC/wiki/Running-behind-a-proxy | |
117 | */ | |
76391784 | 118 | |
d99877b8 D |
119 | // Whitelisted HTTP proxies in CIDR format |
120 | conf.http_proxies = ["127.0.0.1/32"]; | |
c6e3ed44 | 121 | |
31a18fa4 D |
122 | // Header that contains the real-ip from the HTTP proxy |
123 | conf.http_proxy_ip_header = "x-forwarded-for"; | |
124 | ||
d99877b8 D |
125 | // Base HTTP path to the KIWI IRC client (eg. /kiwi) |
126 | conf.http_base_path = "/kiwi"; | |
127 | ||
128 | ||
ac0b278c | 129 | /* |
57c22370 | 130 | * SOCKS (version 5) proxy settings |
1515556c JA |
131 | * This feature is only available on node 0.10.0 and above. |
132 | * Do not enable it if you're running 0.8 or below or Bad Things will happen. | |
ac0b278c JA |
133 | */ |
134 | conf.socks_proxy = {}; | |
135 | ||
136 | // Enable proxying outbound connections through a SOCKS proxy | |
137 | conf.socks_proxy.enabled = false; | |
138 | ||
139 | // Proxy *all* outbound connections through a SOCKS proxy | |
140 | conf.socks_proxy.all = false; | |
141 | ||
142 | // Use SOCKS proxy for these hosts only (if conf.sock_proxy.all === false) | |
143 | conf.socks_proxy.proxy_hosts = [ | |
144 | "irc.example.com" | |
145 | ]; | |
146 | ||
147 | // Host and port for the SOCKS proxy | |
148 | conf.socks_proxy.address = '127.0.0.1'; | |
149 | conf.socks_proxy.port = 1080; | |
150 | ||
151 | // Username and password for the SOCKS proxy | |
152 | // Set user to null to disable password authentication | |
153 | conf.socks_proxy.user = null; | |
154 | conf.socks_proxy.pass = null; | |
155 | ||
d99877b8 D |
156 | |
157 | // Enabled transports for the browser to use | |
ab15f618 D |
158 | conf.transports = [ |
159 | "websocket", | |
160 | "flashsocket", | |
161 | "htmlfile", | |
162 | "xhr-polling", | |
163 | "jsonp-polling" | |
164 | ]; | |
165 | ||
d99877b8 | 166 | |
b65ad8f1 | 167 | |
ab15f618 D |
168 | |
169 | // Default quit message | |
1360a454 | 170 | conf.quit_message = "http://www.kiwiirc.com/ - A hand-crafted IRC client"; |
ab15f618 D |
171 | |
172 | ||
76391784 D |
173 | // Default settings for the client. These may be changed in the browser |
174 | conf.client = { | |
175 | server: 'irc.kiwiirc.com', | |
176 | port: 6697, | |
177 | ssl: true, | |
178 | channel: '#kiwiirc', | |
1cfc4800 JA |
179 | nick: 'kiwi_?', |
180 | settings: { | |
181 | theme: 'relaxed', | |
182 | channel_list_style: 'tabs', | |
183 | scrollback: 250, | |
184 | show_joins_parts: true, | |
185 | show_timestamps: false, | |
186 | mute_sounds: false | |
187 | } | |
76391784 D |
188 | }; |
189 | ||
190 | ||
46f41dfb | 191 | // If set, the client may only connect to this 1 IRC server |
93e84f75 D |
192 | //conf.restrict_server = "irc.kiwiirc.com"; |
193 | //conf.restrict_server_port = 6667; | |
194 | //conf.restrict_server_ssl = false; | |
195 | //conf.restrict_server_channel = "#kiwiirc"; | |
196 | //conf.restrict_server_password = ""; | |
197 | //conf.restrict_server_nick = "kiwi_"; | |
ab15f618 D |
198 | |
199 | ||
76391784 D |
200 | |
201 | ||
ab15f618 D |
202 | /* |
203 | * Do not ammend the below lines unless you understand the changes! | |
204 | */ | |
813ae69a | 205 | module.exports.production = conf; |