Merge branch 'text_themes' of https://github.com/CoryChaplin/KiwiIRC into CoryChaplin...
[KiwiIRC.git] / config.example.js
1 var conf = {};
2
3 // Run the Kiwi server under a different user/group
4 conf.user = "";
5 conf.group = "";
6
7
8 // Log file location
9 conf.log = "kiwi.log";
10
11
12
13 /*
14 * Server listen blocks
15 */
16
17 // Do not edit this line!
18 conf.servers = [];
19
20 // Example server block
21 conf.servers.push({
22 port: 7778,
23 address: "0.0.0.0"
24 });
25
26 // Example SSL server block
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 //});
35
36 // Network interface for outgoing connections
37 conf.outgoing_address = {
38 IPv4: '0.0.0.0'
39 //IPv6: '::'
40 };
41
42
43 // Do we want to enable the built in Identd server?
44 conf.identd = {
45 enabled: false,
46 port: 113,
47 address: "0.0.0.0"
48 };
49
50
51
52
53
54
55 // Where the client files are
56 conf.public_http = "client/";
57
58 // Max connections per connection. 0 to disable
59 conf.max_client_conns = 5;
60
61 // Max connections per server. 0 to disable.
62 // Setting is ignored if:
63 // - There is a WEBIRC password configured for the server,
64 // - Kiwi is configured to send the client's ip as a username for the server, or
65 // - Kiwi is running in restricted server mode.
66 conf.max_server_conns = 0;
67
68 /*
69 * Default encoding to be used by the server
70 * As specified and limited to iconv-lite library support.
71 */
72 conf.default_encoding = 'utf8';
73
74
75 /*
76 * Default GECOS (real name) for IRC connections
77 * %n will be replaced with the users nick
78 * %h will be replaced with the users hostname
79 */
80 //conf.default_gecos = 'Web IRC Client';
81
82
83
84 /*
85 * Client side plugins
86 * Array of URLs that will be loaded into the browser when the client first loads up
87 * See http://github.com/prawnsalad/KiwiIRC/wiki/Client-plugins
88 */
89 conf.client_plugins = [
90 // "http://server.com/kiwi/plugins/myplugin.html"
91 ];
92
93
94
95
96 // Directory to find the server modules
97 conf.module_dir = "../server_modules/";
98
99 // Which modules to load
100 conf.modules = [];
101
102
103
104
105 // WebIRC passwords enabled for this server
106 conf.webirc_pass = {
107 //"irc.network.com": "configured_webirc_password",
108 //"127.0.0.1": "foobar"
109 };
110
111 // Some IRCDs require the clients IP via the username/ident
112 conf.ip_as_username = [
113 //"irc.network.com",
114 //"127.0.0.1"
115 ];
116
117 // Whether to verify IRC servers' SSL certificates against built-in well-known certificate authorities
118 conf.reject_unauthorised_certificates = false;
119
120
121
122 /*
123 * Reverse proxy settings
124 * Reverse proxies that have been reported to work can be found at:
125 * https://kiwiirc.com/docs/installing/proxies
126 */
127
128 // Whitelisted HTTP proxies in CIDR format
129 conf.http_proxies = ["127.0.0.1/32"];
130
131 // Header that contains the real-ip from the HTTP proxy
132 conf.http_proxy_ip_header = "x-forwarded-for";
133
134 // Base HTTP path to the KIWI IRC client (eg. /kiwi)
135 conf.http_base_path = "/kiwi";
136
137
138 /*
139 * SOCKS (version 5) proxy settings
140 * This feature is only available on node 0.10.0 and above.
141 * Do not enable it if you're running 0.8 or below or Bad Things will happen.
142 */
143 conf.socks_proxy = {};
144
145 // Enable proxying outbound connections through a SOCKS proxy
146 conf.socks_proxy.enabled = false;
147
148 // Proxy *all* outbound connections through a SOCKS proxy
149 conf.socks_proxy.all = false;
150
151 // Use SOCKS proxy for these hosts only (if conf.sock_proxy.all === false)
152 conf.socks_proxy.proxy_hosts = [
153 "irc.example.com"
154 ];
155
156 // Host and port for the SOCKS proxy
157 conf.socks_proxy.address = '127.0.0.1';
158 conf.socks_proxy.port = 1080;
159
160 // Username and password for the SOCKS proxy
161 // Set user to null to disable password authentication
162 conf.socks_proxy.user = null;
163 conf.socks_proxy.pass = null;
164
165
166
167 // Default quit message
168 conf.quit_message = "http://www.kiwiirc.com/ - A hand-crafted IRC client";
169
170
171 // Default settings for the client. These may be changed in the browser
172 conf.client = {
173 server: 'irc.kiwiirc.com',
174 port: 6697,
175 ssl: true,
176 channel: '#kiwiirc',
177 channel_key: '',
178 nick: 'kiwi_?',
179 settings: {
180 theme: 'relaxed',
181 text_theme: 'default',
182 channel_list_style: 'tabs',
183 scrollback: 250,
184 show_joins_parts: true,
185 show_timestamps: false,
186 use_24_hour_timestamps: true,
187 mute_sounds: false,
188 show_emoticons: true,
189 count_all_activity: true
190 },
191 window_title: 'Kiwi IRC'
192 };
193
194 // List of themes available for the user to choose from
195 conf.client_themes = [
196 'relaxed',
197 'mini',
198 'cli',
199 'basic'
200 ];
201
202
203 // If set, the client may only connect to this 1 IRC server
204 //conf.restrict_server = "irc.kiwiirc.com";
205 //conf.restrict_server_port = 6667;
206 //conf.restrict_server_ssl = false;
207 //conf.restrict_server_channel = "#kiwiirc";
208 //conf.restrict_server_channel_key = "";
209 //conf.restrict_server_password = "";
210 //conf.restrict_server_nick = "kiwi_";
211
212
213
214
215 /*
216 * Do not amend the below lines unless you understand the changes!
217 */
218 module.exports.production = conf;