3 // Run the Kiwi server under a different user/group
14 * Server listen blocks
17 // Do not edit this line!
20 // Example server block
26 // Example SSL server block
29 // address: "0.0.0.0",
32 // ssl_key: "server.key",
33 // ssl_cert: "cert.pem"
36 // Network interface for outgoing connections
37 conf
.outgoing_address
= {
43 // Do we want to enable the built in Identd server?
55 // Where the client files are
56 conf
.public_http
= "client/";
58 // Max connections per connection. 0 to disable
59 conf
.max_client_conns
= 5;
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;
69 * Default encoding to be used by the server
70 * As specified and limited to iconv-lite library support.
72 conf
.default_encoding
= 'utf8';
76 * Default GECOS (real name) for IRC connections
78 //conf.default_gecos = 'Web IRC Client';
83 * Array of URLs that will be loaded into the browser when the client first loads up
84 * See http://github.com/prawnsalad/KiwiIRC/wiki/Client-plugins
86 conf
.client_plugins
= [
87 // "http://server.com/kiwi/plugins/myplugin.html"
93 // Directory to find the server modules
94 conf
.module_dir
= "../server_modules/";
96 // Which modules to load
102 // WebIRC passwords enabled for this server
104 //"irc.network.com": "configured_webirc_password",
105 //"127.0.0.1": "foobar"
108 // Some IRCDs require the clients IP via the username/ident
109 conf
.ip_as_username
= [
114 // Whether to verify IRC servers' SSL certificates against built-in well-known certificate authorities
115 conf
.reject_unauthorised_certificates
= false;
120 * Reverse proxy settings
121 * Reverse proxies that have been reported to work can be found at:
122 * https://kiwiirc.com/docs/installing/proxies
125 // Whitelisted HTTP proxies in CIDR format
126 conf
.http_proxies
= ["127.0.0.1/32"];
128 // Header that contains the real-ip from the HTTP proxy
129 conf
.http_proxy_ip_header
= "x-forwarded-for";
131 // Base HTTP path to the KIWI IRC client (eg. /kiwi)
132 conf
.http_base_path
= "/kiwi";
136 * SOCKS (version 5) proxy settings
137 * This feature is only available on node 0.10.0 and above.
138 * Do not enable it if you're running 0.8 or below or Bad Things will happen.
140 conf
.socks_proxy
= {};
142 // Enable proxying outbound connections through a SOCKS proxy
143 conf
.socks_proxy
.enabled
= false;
145 // Proxy *all* outbound connections through a SOCKS proxy
146 conf
.socks_proxy
.all
= false;
148 // Use SOCKS proxy for these hosts only (if conf.sock_proxy.all === false)
149 conf
.socks_proxy
.proxy_hosts
= [
153 // Host and port for the SOCKS proxy
154 conf
.socks_proxy
.address
= '127.0.0.1';
155 conf
.socks_proxy
.port
= 1080;
157 // Username and password for the SOCKS proxy
158 // Set user to null to disable password authentication
159 conf
.socks_proxy
.user
= null;
160 conf
.socks_proxy
.pass
= null;
164 // Default quit message
165 conf
.quit_message
= "http://www.kiwiirc.com/ - A hand-crafted IRC client";
168 // Default settings for the client. These may be changed in the browser
170 server
: 'irc.kiwiirc.com',
178 channel_list_style
: 'tabs',
180 show_joins_parts
: true,
181 show_timestamps
: false,
188 // If set, the client may only connect to this 1 IRC server
189 //conf.restrict_server = "irc.kiwiirc.com";
190 //conf.restrict_server_port = 6667;
191 //conf.restrict_server_ssl = false;
192 //conf.restrict_server_channel = "#kiwiirc";
193 //conf.restrict_server_channel_key = "";
194 //conf.restrict_server_password = "";
195 //conf.restrict_server_nick = "kiwi_";
201 * Do not ammend the below lines unless you understand the changes!
203 module
.exports
.production
= conf
;