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