Translations update. New: CS, ES, PL, UK
[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
13d7faa3 58// Max connections per connection. 0 to disable
ab15f618
D
59conf.max_client_conns = 5;
60
8838bdd6 61// Max connections per server. 0 to disable.
8ae445ce
JA
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.
8838bdd6
JA
66conf.max_server_conns = 0;
67
d1b3e8b3 68/*
3efb4f33 69* Default encoding to be used by the server
d1b3e8b3 70* As specified and limited to iconv-lite library support.
d1b3e8b3 71*/
396ea0d9 72conf.default_encoding = 'utf8';
2eec3842 73
c14b67ae
D
74
75/*
76* Default GECOS (real name) for IRC connections
cb234b7e 77* %n will be replaced with the users nick
7318cbc6 78* %h will be replaced with the users hostname
c14b67ae
D
79*/
80//conf.default_gecos = 'Web IRC Client';
81
d26a40c6 82
c14b67ae 83
2eec3842
D
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 */
89conf.client_plugins = [
90 // "http://server.com/kiwi/plugins/myplugin.html"
91];
92
93
94
ab15f618
D
95
96// Directory to find the server modules
d8002ae0 97conf.module_dir = "../server_modules/";
ab15f618
D
98
99// Which modules to load
991091b7 100conf.modules = [];
ab15f618
D
101
102
103
104
105// WebIRC passwords enabled for this server
106conf.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
112conf.ip_as_username = [
86d127f9
PV
113 //"irc.network.com",
114 //"127.0.0.1"
ab15f618
D
115];
116
831b41b0
JA
117// Whether to verify IRC servers' SSL certificates against built-in well-known certificate authorities
118conf.reject_unauthorised_certificates = false;
ab15f618
D
119
120
d99877b8
D
121
122/*
123 * Reverse proxy settings
124 * Reverse proxies that have been reported to work can be found at:
b54438a9 125 * https://kiwiirc.com/docs/installing/proxies
d99877b8 126 */
76391784 127
d99877b8
D
128// Whitelisted HTTP proxies in CIDR format
129conf.http_proxies = ["127.0.0.1/32"];
c6e3ed44 130
31a18fa4
D
131// Header that contains the real-ip from the HTTP proxy
132conf.http_proxy_ip_header = "x-forwarded-for";
133
d99877b8
D
134// Base HTTP path to the KIWI IRC client (eg. /kiwi)
135conf.http_base_path = "/kiwi";
136
137
ac0b278c 138/*
57c22370 139 * SOCKS (version 5) proxy settings
1515556c
JA
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.
ac0b278c
JA
142 */
143conf.socks_proxy = {};
144
145// Enable proxying outbound connections through a SOCKS proxy
146conf.socks_proxy.enabled = false;
147
148// Proxy *all* outbound connections through a SOCKS proxy
149conf.socks_proxy.all = false;
150
151// Use SOCKS proxy for these hosts only (if conf.sock_proxy.all === false)
152conf.socks_proxy.proxy_hosts = [
153 "irc.example.com"
154];
155
156// Host and port for the SOCKS proxy
157conf.socks_proxy.address = '127.0.0.1';
158conf.socks_proxy.port = 1080;
159
160// Username and password for the SOCKS proxy
161// Set user to null to disable password authentication
162conf.socks_proxy.user = null;
163conf.socks_proxy.pass = null;
164
d99877b8 165
ab15f618
D
166
167// Default quit message
1360a454 168conf.quit_message = "http://www.kiwiirc.com/ - A hand-crafted IRC client";
ab15f618
D
169
170
76391784
D
171// Default settings for the client. These may be changed in the browser
172conf.client = {
173 server: 'irc.kiwiirc.com',
174 port: 6697,
175 ssl: true,
176 channel: '#kiwiirc',
6d86afeb 177 channel_key: '',
1cfc4800
JA
178 nick: 'kiwi_?',
179 settings: {
180 theme: 'relaxed',
181 channel_list_style: 'tabs',
182 scrollback: 250,
183 show_joins_parts: true,
184 show_timestamps: false,
2eacc942 185 mute_sounds: false,
223d53e5 186 show_emoticons: true,
7ba064d9 187 count_all_activity: true
2df39a5c
JA
188 },
189 window_title: 'Kiwi IRC'
76391784
D
190};
191
15dc5f90
JA
192// List of themes available for the user to choose from
193conf.client_themes = [
194 'relaxed',
195 'mini',
196 'cli',
197 'basic'
198];
199
76391784 200
46f41dfb 201// If set, the client may only connect to this 1 IRC server
93e84f75
D
202//conf.restrict_server = "irc.kiwiirc.com";
203//conf.restrict_server_port = 6667;
204//conf.restrict_server_ssl = false;
205//conf.restrict_server_channel = "#kiwiirc";
6d86afeb 206//conf.restrict_server_channel_key = "";
93e84f75
D
207//conf.restrict_server_password = "";
208//conf.restrict_server_nick = "kiwi_";
ab15f618
D
209
210
76391784
D
211
212
ab15f618 213/*
aefdbb09 214 * Do not amend the below lines unless you understand the changes!
ab15f618 215 */
813ae69a 216module.exports.production = conf;