SOCKS proxy conf and integration
[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
ab15f618 36
8baf9099
D
37
38
39
40
ab15f618
D
41// Where the client files are
42conf.public_http = "client/";
43
13d7faa3 44// Max connections per connection. 0 to disable
ab15f618
D
45conf.max_client_conns = 5;
46
2eec3842
D
47
48/*
49 * Client side plugins
50 * Array of URLs that will be loaded into the browser when the client first loads up
51 * See http://github.com/prawnsalad/KiwiIRC/wiki/Client-plugins
52 */
53conf.client_plugins = [
54 // "http://server.com/kiwi/plugins/myplugin.html"
55];
56
57
58
ab15f618
D
59// Enabled CAP extensions (See ENTER URL TO CAP INFO HERE PLS)
60conf.cap_options = [];
61
62
63
64
65// Directory to find the server modules
d8002ae0 66conf.module_dir = "../server_modules/";
ab15f618
D
67
68// Which modules to load
991091b7 69conf.modules = [];
ab15f618
D
70
71
72
73
74// WebIRC passwords enabled for this server
75conf.webirc_pass = {
76 //"irc.network.com": "configured_webirc_password",
77 //"127.0.0.1": "foobar"
78};
79
80// Some IRCDs require the clients IP via the username/ident
81conf.ip_as_username = [
82 "irc.network.com",
83 "127.0.0.1"
84];
85
831b41b0
JA
86// Whether to verify IRC servers' SSL certificates against built-in well-known certificate authorities
87conf.reject_unauthorised_certificates = false;
ab15f618
D
88
89
d99877b8
D
90
91/*
92 * Reverse proxy settings
93 * Reverse proxies that have been reported to work can be found at:
94 * http://github.com/prawnsalad/KiwiIRC/wiki/Running-behind-a-proxy
95 */
76391784 96
d99877b8
D
97// Whitelisted HTTP proxies in CIDR format
98conf.http_proxies = ["127.0.0.1/32"];
c6e3ed44 99
31a18fa4
D
100// Header that contains the real-ip from the HTTP proxy
101conf.http_proxy_ip_header = "x-forwarded-for";
102
d99877b8
D
103// Base HTTP path to the KIWI IRC client (eg. /kiwi)
104conf.http_base_path = "/kiwi";
105
106
ac0b278c
JA
107/*
108 * SOCKS proxy settings
109 */
110conf.socks_proxy = {};
111
112// Enable proxying outbound connections through a SOCKS proxy
113conf.socks_proxy.enabled = false;
114
115// Proxy *all* outbound connections through a SOCKS proxy
116conf.socks_proxy.all = false;
117
118// Use SOCKS proxy for these hosts only (if conf.sock_proxy.all === false)
119conf.socks_proxy.proxy_hosts = [
120 "irc.example.com"
121];
122
123// Host and port for the SOCKS proxy
124conf.socks_proxy.address = '127.0.0.1';
125conf.socks_proxy.port = 1080;
126
127// Username and password for the SOCKS proxy
128// Set user to null to disable password authentication
129conf.socks_proxy.user = null;
130conf.socks_proxy.pass = null;
131
d99877b8
D
132
133// Enabled transports for the browser to use
ab15f618
D
134conf.transports = [
135 "websocket",
136 "flashsocket",
137 "htmlfile",
138 "xhr-polling",
139 "jsonp-polling"
140];
141
d99877b8 142
b65ad8f1 143
ab15f618
D
144
145// Default quit message
1360a454 146conf.quit_message = "http://www.kiwiirc.com/ - A hand-crafted IRC client";
ab15f618
D
147
148
76391784
D
149// Default settings for the client. These may be changed in the browser
150conf.client = {
151 server: 'irc.kiwiirc.com',
152 port: 6697,
153 ssl: true,
154 channel: '#kiwiirc',
155 nick: 'kiwi_?'
156};
157
158
93e84f75
D
159// If not empty, the client may only connect to this 1 IRC server
160//conf.restrict_server = "irc.kiwiirc.com";
161//conf.restrict_server_port = 6667;
162//conf.restrict_server_ssl = false;
163//conf.restrict_server_channel = "#kiwiirc";
164//conf.restrict_server_password = "";
165//conf.restrict_server_nick = "kiwi_";
ab15f618
D
166
167
76391784
D
168
169
ab15f618
D
170/*
171 * Do not ammend the below lines unless you understand the changes!
172 */
173module.exports.production = conf;