fixed MODE_REGISTERED bug; introduced MCP_REGISTERED
[srvx.git] / srvx.conf.example
1 // services configuration file (example)
2 /* It allows two kinds of comments.  Whitespaces between tokens are
3  * ignored.  All strings (even if they're just numbers) MUST be
4  * enclosed in double quotes.  There must be a semicolon after every
5  * key/value pair.
6  */
7
8 // The "uplinks" section describes what servers we can possibly link
9 // to.  Each subsection describes one server.
10 "uplinks" {
11     "private-network" {
12         // IP address and port the server listens on
13         "address"        "10.0.0.3";
14         "port"           "6660";
15         // What password should we send when we connect?
16         "password"       "passwordtoconnect";
17         // What password should we require our peer to send?
18         // (If it is blank, we do not require a specific password.)
19         "their_password" "passwordtorequire";
20         "enabled"        "1";
21         // How many times should we try to connect before giving up?
22         "max_tries"      "3";
23         // What IP should we bind to?
24         // If you do not specify bind_address, the default is used.
25         // "bind_address"   "192.168.0.10"; // use this ip to link
26     };
27
28     /* unused-uplink is just an example to show you how you can
29      * define more than one uplink (and how you can disable one or
30      * more of them.) */
31     "unused-uplink" {
32         "address"        "10.0.0.4";
33         "port"           "6660";
34         "password"       "passwordtoconnect";
35         "their_password" "passwordtorequire";
36         // If "enabled" is 0, we will not try to use this uplink.
37         "enabled"        "0";
38         "max_tries"      "3";
39     };
40 };
41
42 // The "services" section configures the services that make up srvx.
43 "services" {
44     "nickserv" {
45         "nick" "NickServ";
46         // If you want to by have *@* as the default hostmask, set
47         // default_hostmask.  This is discouraged for security reasons.
48         // "default_hostmask" "1";
49         // do we warn users when someone new auths to their account?
50         "warn_clone_auth" "1";
51         // what is the default maxlogins value?
52         "default_maxlogins" "2";
53         // what is the absolute maxlogins value?
54         "hard_maxlogins" "10";
55         // This names a file that contains easily guessed passwords.
56         // It always contains "password", "<password>" and the user's
57         // account name.
58         "dict_file" "/usr/share/dict/words";
59         // Minimum number of various types of characters permitted in
60         // a password.
61         "password_min_length" "4";
62         "password_min_digits" "1";
63         "password_min_upper" "0";
64         "password_min_lower" "0";
65         // What should valid account and nicks look like?
66         // If valid_nick_regex is omitted, valid_account_regex is used
67         // for both nicks and accounts.
68         // These look funny because "[][-]" is the only way to write the
69         // character class containing the characters ']', '[' and '-'.
70         "valid_account_regex" "^[][_a-z^`'{}|-][][_a-z0-9^`'{}|-]*$";
71         "valid_nick_regex" "^[-_a-z][-_a-z0-9]*$";
72
73         // Should nick ownership be disabled?
74         "disable_nicks" "0";
75         // One account may only own this many nicks.
76         "nicks_per_account" "4";
77         // Send a warning when someone uses a registered nick?
78         "warn_nick_owned" "0";
79         // What to do when someone uses the NickServ "reclaim" command?
80         // This can be one of "none", "warn", "svsnick", or "kill", but
81         // stock ircu does not support svsnick -- you need Bahamut or a
82         // patch for ircu.  no, don't ask srvx developers for the patch.
83         "reclaim_action" "none";
84         // What (else) to do when someone uses a registered nick?
85         // This can be anything "reclaim_action" can be, but it makes
86         // more sense to use the "warn_nick_owned" instead of "warn".
87         "auto_reclaim_action" "none";
88         // How long to wait before doing the auto_reclaim_action?
89         // This is ignored if "auto_reclaim_action" is "none".
90         "auto_reclaim_delay" "0";
91
92         // access control for who can change account flags
93         "flag_levels" {
94             "g" "800";
95             "lc_h" "800"; // specifically lower case h
96             "uc_H" "800"; // .. and upper case H
97             "S" "999";
98             "b" "1";
99         };
100         // and for who can change epithets for staff
101         "set_epithet_level" "800";
102         // what opserv access level do you need to set somebody else's level?
103         "modoper_level" "850";
104
105         // how often should accounts be expired?
106         "account_expire_freq" "1d";
107         // how long until an account with access to any channel(s) expires?
108         "account_expire_delay" "35d";
109         // how long until an account with no access to any channels expires?
110         "nochan_account_expire_delay" "14d";
111         /* "require_qualified" has been removed. It is now
112          * integrated into the modcmd command authorization
113          * and dispatch mechanism.  "/msg OpServ help modcmd"
114          * for details.
115          */
116         // If somebody keeps guessing passwords incorrectly, do we gag them?
117         "autogag_enabled" "1";
118         "autogag_duration" "30m";
119         "auth_policer" {
120             "size" "5";
121             "drain-rate" "0.05";
122         };
123         // How to integrate with email cookies?
124         "email_enabled" "0"; // if set, /mail/enable MUST be set too
125         "email_required" "0"; // ignored unless email_enabled is non-zero
126         "cookie_timeout" "1d"; // how long before we expire cookies?
127         "accounts_per_email" "1"; // you may want to increase this; or not
128         "email_search_level" "600"; // minimum OpServ level to search based on email address
129         "email_visible_level" "800"; // minimum OpServ level to see somebody's email address
130     };
131
132     "opserv" {
133         "nick" "OpServ";
134         // should use of this service be limited to global opers?
135         "privileged" "1";
136         // fullname for service
137         "description" "Oper Service Bot";
138         // hostname for service; only used if "description" is also set
139         "hostname" "dances-all-night-with.srvx.net";
140         // what channel should opserv send debug output to?
141         "debug_channel" "#opserv";
142         "debug_channel_modes" "+tinms";
143         // where to send general alerts (e.g. flood alerts)?
144         "alert_channel" "#ircops";
145         "alert_channel_modes" "+tns";
146         // who to tell about staff auths?
147         "staff_auth_channel" "#opserv";
148         "staff_auth_channel_modes" "+tinms";
149         // how many clones to allow from an untrusted host?
150         "untrusted_max" "4";
151         // how long of a g-line should be issued if the max hosts is exceeded?
152         "clone_gline_duration" "1h";
153         // how long to g-line for ?block (or, by default, for ?trace gline)?
154         "block_gline_duration" "1h";
155         // how long to keep an illegal channel locked down (seconds)?
156         "purge_lock_delay" "60";
157         // channel join flood policer params?
158         "join_policer" {
159             "size" "20";
160             "drain-rate" "1";
161         };
162         // automatically moderate join flooded channels?
163         "join_flood_moderate" "1";
164         // Don't moderate and warn channels unless there are more than
165         // join_flood_moderate_threshold users in the channel. the
166         // value 0 will disable the threshold.
167         "join_flood_moderate_threshold" "50";
168         // new user flood policer params
169         "new_user_policer" {
170             "size" "200";
171             "drain-rate" "3";
172         };
173     };
174
175     "chanserv" {
176         // You may disable a service by removing its "nick" config item.
177         // That means: SERVICES WILL ONLY WORK IF YOU DEFINE THEIR NICK.
178         // (This is changed relative srvx-1.0.x, which would use default
179         // unless you specified ".disabled".)
180         "nick" "ChanServ";
181         // Does your ircd have off-channel services support?
182         // Bahamut does; ircu2.10.11 does not.
183         "off_channel" "no";
184         // Does your ircd have a mode for registered channels?
185         // Bahamut does; ircu2.10.11 does not.
186         "use_registered_mode" "no";
187         // how long should a person be unseen before resending infoline?
188         "info_delay" "120";
189         // maximum greeting length
190         "max_greetlen" "120";
191         // maximum users in a channel userlist
192         "max_chan_users" "512";
193         // maximum bans on a channel banlist
194         "max_chan_bans" "512";
195         // maximum length of a user's infoline
196         "max_userinfo_length" "400";
197         // If DynLimit is on and there are N users in the channel, ChanServ will
198         // try to keep the limit at N+<adjust_threshold>.
199         "adjust_threshold" "15";
200         // .. but ChanServ will only increment or decrement the limit this often.
201         "adjust_delay" "30";
202         // How often to look for channels that have expired?
203         "chan_expire_freq" "3d";
204         // How long is a channel unvisited (by masters or above) before it can be expired?
205         "chan_expire_delay" "30d";
206         // what !set options should we show when user calls "!set" with no arguments?
207         "set_shows" ("DefaultTopic", "TopicMask", "Greeting", "UserGreeting", "Modes", "PubCmd", "InviteMe", "UserInfo", "GiveVoice", "GiveOps", "EnfOps", "EnfModes", "EnfTopic", "TopicSnarf", "Setters", "CtcpUser", "CtcpReaction", "Protect", "Toys", "DynLimit", "NoDelete");
208
209         // A list of !8ball responses
210         "8ball" ("Not a chance.",
211                 "In your dreams.",
212                 "Absolutely!",
213                 "Could be, could be.");
214         // channel(s) that support helpers must be in to be helping
215         // if this is a list, any one by itself will do
216         "support_channel" ("#support", "#registration");
217         // maximum number of channels owned by one account before FORCE is required
218         "max_owned" "5";
219         // how long between automatic topic refreshes with TopicRefresh 0
220         "refresh_period" "3h";
221         // what should !access say for various staff?
222         "irc_operator_epithet" "a megalomaniacal power hungry tyrant";
223         "network_helper_epithet" "a wannabe tyrant";
224         "support_helper_epithet" "a wannabe tyrant";
225         // what should a newly registered channel get as its modes?
226         "default_modes" "+nt";
227         // minimum opserv access to set, clear or override nodelete setting?
228         "nodelete_level" "1";
229     };
230
231     "global" {
232         "nick" "Global";
233         // should users get community announcements by default or not?
234         "announcements_default" "on";
235     };
236 };
237
238 // The modules section gives configuration information to optional modules.
239 "modules" {
240     "helpserv" {
241         // The description/fullname field
242         "description" "Help Queue Manager";
243         // HelpServ bots log all of their requests to this file, with
244         // details on when they were opened, closed, their contents,
245         // helper, etc. The file is written in saxdb format for easy
246         // parsing by external programs. Please note that you cannot
247         // use ?set to change this value while srvx is running.
248         "reqlogfile" "helpservreq.log";
249         // How long should a helpserv be inactive (no requests assigned)
250         // before it can be unregistered by the expire command?
251         "expiration" "60d";
252     };
253     "sockcheck" {
254         "max_sockets" "64";  // allow 64 concurrent clients to be checked
255         "max_read" "1024"; // don't read more than 1024 bytes from any client
256         "gline_duration" "1h"; // issue G-lines lasting one hour
257         "max_cache_age" "60"; // only cache results for 60 seconds
258         // "address" "192.168.0.10"; // do proxy tests from this address
259     };
260     "snoop" {
261         // Where to send snoop messages?
262         "channel" "#wherever";
263         // Which bot?
264         "bot" "OpServ";
265         // Show new users and joins from net joins?  (off by default)
266         "show_bursts" "0";
267     };
268     "memoserv" {
269         "bot" "NickServ";
270         "message_expiry" "30d"; // age when messages are deleted; set
271                                 // to 0 to disable message expiration
272     };
273 };
274
275 "policers" {
276     "commands-luser" {
277         "size" "5";
278         "drain-rate" "0.5";
279     };
280 };
281
282 "rlimits" {
283     "data" "50M";
284     "stack" "6M";
285     "vmem" "100M";
286 };
287
288 "server" {
289     "hostname" "localhost.domain";
290     "description" "Network Services";
291     "network" "GenericNET";
292     "hidden_host" "users.Generic.NET"; // set this if you enabled ircd/Undernet's +x mode
293     /* hidden_host should match the F:HIDDEN_HOST: line in your ircu's ircd.conf;
294      * srvx does not set the host suffix for users, but must know it when making
295      * things like bans, where it should not show the user's real hostname. */
296     "numeric" "10"; // hint: If you get collisions on link, CHANGE THIS.
297     "max_users" "256"; // You can save a little memory by setting this to a lower value.
298     "force_n2k" "1"; // Use extended (5-digit) numnick for self, even if 3 are possible.
299     "ping_freq" "60";
300     "ping_timeout" "90";
301     "max_cycles" "30"; // max uplink cycles before giving up
302     // Admin information is traditionally: location, location, email
303     "admin" ("IRC Network", "Gotham City, GO", "Mr Commissioner <james.gordon@police.gov>");
304     /* the following two settings are for ircu's HEAD_IN_SAND features, and are equivelent to
305      * the F: lines in ircu's ircd.conf. both can be disabled by commenting them out. */
306     "his_servername" "*.Generic.NET"; // hidden server name, shown in remote /whois requests
307     "his_servercomment" "The Generic, Boring IRC Network";
308 };
309
310 // controlling how services (mostly NickServ) send mail
311 "mail" {
312     // These options are the defaults.
313     "enable" "0";
314     "mailer" "/usr/sbin/sendmail";
315     "from_address" "admin@poorly.configured.server";
316     // These are not :>
317     "extra_headers" ("X-Ereet-Services: srvx r reet");
318     "body_prefix_first" ("Welcome to our network.  This prefix is used whenever srvx thinks this may be the first time we send email to your address.");
319     "body_prefix" ("This goes before the mail text.", "Each string here is treated as a separate \"paragraph\" for line wrapping.");
320     "body_suffix_first" ("We care a lot about spam.  If you did not request this email, bitch and moan loudly at our opers, and tell our ISP to gank our connection.");
321     "body_suffix" ("PLEASE DO NOT BE ALARMED.  CALMLY BOARD THE AIRCRAFT, STRAP YOUR ARMS ACROSS YOUR BODY, AND JUMP THE HELL OUT OF THE PLANE.", "Yaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaatta!");
322 };
323
324 // New section in srvx-1.2 to control database locations, etc.
325 // If you leave this section out, each database will be in its own file,
326 // and they will be written out every half hour.
327 "dbs" {
328     // This just illustrates how you can jam every database into one huge ("mondo") file.
329     "ChanServ" { "mondo_section" "ChanServ"; };
330     "gline" { "mondo_section" "gline"; };
331     "Global" { "mondo_section" "Global"; };
332     "HelpServ" { "mondo_section" "HelpServ"; };
333     "modcmd" { "mondo_section" "modcmd"; };
334     "NickServ" { "mondo_section" "NickServ"; };
335     "OpServ" { "mondo_section" "OpServ"; };
336     "sendmail" { "mondo_section" "sendmail"; };
337
338     // These are the options if you want a database to be in its own file.
339     "mondo" {
340         // Where to put it?
341         "filename" "srvx.db";
342         // How often should it be saved?
343         // (You can disable automatic saves by setting this to 0.)
344         "frequency" "30m";
345     };
346 };
347
348 // New section in srvx-1.2 to control log destinations.
349 // If you leave this section out, each service (technically, each log
350 // facility) will be in its own file, just like before.
351 "logs" {
352     // Two kinds of items exist in this section.
353
354     // One is a facility configuration subsection.  These have the
355     // name of a log facility (one of "ChanServ", "Global",
356     // "HelpServ", "NickServ", "OpServ", "ProxyCheck", or "srvx") and
357     // the value is a subsection. The "srvx" log facility is a
358     // catch-all/fall-back facility.
359     "srvx" {
360         // The "max_age" option says how long to keep log audit entries.
361         "max_age" "10m";
362         // The "max_count" option says how many log audit entries to keep.
363         "max_count" "1024";
364         // Audit (command tracking) entries are discarded if they exceed
365         // either limit: for example, if entry 500 is 10 minutes old, it
366         // will be discarded next time any audit command is logged.
367     };
368
369     // The other kind of item is a target list.  The name of each is a
370     // description of facility-and-severity combinations, and the value
371     // is a string (or list of strings) that describe where matching
372     // events should be logged.  As a special case, the facility * will
373     // specify how to log events regardless of their true facility, and
374     // the severity * will match all severities for a facility.
375     // Log targets use a psuedo-URI syntax:  one of "file:filename",
376     // "std:[out|err|n]" where n is a valid file descriptor, or
377     // "irc:#channel" (nicknames or server masks can be used instead
378     // of channel names, but should be used with care).
379     // The severity is one of "replay", "debug", "command", "info",
380     // "override", "staff", "warning", "error", or "fatal".
381     // WARNING: If any severity except "replay" for a facility is left
382     // unspecified, it will use the default target (for example,
383     // "file:chanserv.log").  For "replay" severity, you must ALWAYS
384     // list a target to log it -- this is because it is very rarely
385     // useful.
386     "*.*" ("std:out", "file:everything.log"); // does NOT suppress any defaults
387     "*.override,staff" "irc:#big-brother"; // report all uses of staff commands
388     "ChanServ.*" "file:chanserv.log"; // duplicates the default behavior
389     "ProxyCheck.*" (); // stop it from logging anything
390 };