forked from prawnsalad/KiwiIRC
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.example.js
148 lines (95 loc) · 2.83 KB
/
config.example.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
var conf = {};
// Run the Kiwi server under a different user/group
conf.user = "";
conf.group = "";
// Log file location
conf.log = "kiwi.log";
/*
* Server listen blocks
*/
// Do not edit this line!
conf.servers = [];
// Example server block
conf.servers.push({
port: 7778,
address: "0.0.0.0"
});
// Example SSL server block
//conf.servers.push({
// port: 7777,
// address: "0.0.0.0",
//
// ssl: true,
// ssl_key: "server.key",
// ssl_cert: "cert.pem"
//});
// Where the client files are
conf.public_http = "client/";
// Max connections per connection. 0 to disable
conf.max_client_conns = 5;
/*
* Client side plugins
* Array of URLs that will be loaded into the browser when the client first loads up
* See http://github.com/prawnsalad/KiwiIRC/wiki/Client-plugins
*/
conf.client_plugins = [
// "http://server.com/kiwi/plugins/myplugin.html"
];
// Enabled CAP extensions (See ENTER URL TO CAP INFO HERE PLS)
conf.cap_options = [];
// Directory to find the server modules
conf.module_dir = "../server_modules/";
// Which modules to load
conf.modules = [];
// WebIRC passwords enabled for this server
conf.webirc_pass = {
//"irc.network.com": "configured_webirc_password",
//"127.0.0.1": "foobar"
};
// Some IRCDs require the clients IP via the username/ident
conf.ip_as_username = [
"irc.network.com",
"127.0.0.1"
];
// Whether to verify IRC servers' SSL certificates against built-in well-known certificate authorities
conf.reject_unauthorised_certificates = false;
/*
* Reverse proxy settings
* Reverse proxies that have been reported to work can be found at:
* http://github.com/prawnsalad/KiwiIRC/wiki/Running-behind-a-proxy
*/
// Whitelisted HTTP proxies in CIDR format
conf.http_proxies = ["127.0.0.1/32"];
// Header that contains the real-ip from the HTTP proxy
conf.http_proxy_ip_header = "x-forwarded-for";
// Base HTTP path to the KIWI IRC client (eg. /kiwi)
conf.http_base_path = "/kiwi";
// Enabled transports for the browser to use
conf.transports = [
"websocket",
"flashsocket",
"htmlfile",
"xhr-polling",
"jsonp-polling"
];
// Default quit message
conf.quit_message = "http://www.kiwiirc.com/ - A hand-crafted IRC client";
// Default settings for the client. These may be changed in the browser
conf.client = {
server: 'irc.kiwiirc.com',
port: 6697,
ssl: true,
channel: '#kiwiirc',
nick: 'kiwi_?'
};
// If not empty, the client may only connect to this 1 IRC server
//conf.restrict_server = "irc.kiwiirc.com";
//conf.restrict_server_port = 6667;
//conf.restrict_server_ssl = false;
//conf.restrict_server_channel = "#kiwiirc";
//conf.restrict_server_password = "";
//conf.restrict_server_nick = "kiwi_";
/*
* Do not ammend the below lines unless you understand the changes!
*/
module.exports.production = conf;