]> jfr.im git - irc/evilnet/x3.git/blob - x3.conf.example
making some good progress on ldap
[irc/evilnet/x3.git] / x3.conf.example
1 /* *****************************************************************
2 * X3 Services Example Configuration file.
3 *
4 * Copy it to your x3 runtime dir, and edit to taste.
5 *
6 * This file allows two kinds of comments. Whitespaces between
7 * tokens are ignored. All strings (even if they're just numbers)
8 * MUST be enclosed in double quotes. There must be a semicolon
9 * after every * key/value pair.
10 */
11
12 /* UPLINKS (servers we connect to) *********************************
13 * Each subsection describes one server. X3 will try to connect to
14 * each in turn maxtries times, and then will quit.
15 */
16 "uplinks" {
17 // This first entry connects to an ircd on teh same server an X3..
18 "Hub" { // This can be any string, just used here for your conveniance
19 "address" "127.0.0.1"; // The IP address of the server
20 "port" "8888"; // What TCP port to connect to
21 "password" "laoo,rpe"; // Both of these passwords must match
22 "their_password" "laoo,rpe"; // the one in the ircd C line for X3.
23 "enabled" "1"; // Set to 0 to disable connecting to this server
24 "max_tries" "10"; // How many times to attemt reconnect before quitting
25 "bind_address" "127.0.0.1"; // LOCAL IP address we want to connect FROM
26 };
27 // This next one connects to an ircd on another server
28 "Hub-west" {
29 // IP address and port the server listens on
30 "address" "192.168.234.123"; // IP of remote server
31 "port" "8888";
32 "password" "ekrpat"; // C line passwords
33 "their_password" "ekrpat"; // Set same as above
34 "enabled" "0"; // Set this to 1 to use this server..
35 "max_tries" "1";
36 "bind_address" "192.168.1.10";
37 };
38 };
39
40 /* SERVER (Details about our existance) **********************************
41 */
42 "server" {
43 "hostname" "X3.AfterNET.Services"; // The servers name. (Use this in the ircd's C line)
44 "description" "AfterNET Network Services"; // Shows up in /links.
45 "network" "AfterNET";
46 "hidden_host" "Users.AfterNET.Org"; // set this if you enabled Nefarious' +x mode
47 /* hidden_host should match the F:HIDDEN_HOST: line in your ircu's ircd.conf;
48 * x3 does not set the host suffix for users, but must know it when making
49 * things like bans, where it should not show the user's real hostname. */
50 "hidden_host_type" "1"; // change this to 2 if you use Nefarious's style 2 host hiding.
51 "key1" "45432"; // Set these key values to the network KEY values you use
52 "key2" "76934"; // for host hiding style 2.
53 "key3" "98336";
54 "numeric" "51"; // hint: If you get collisions on link, CHANGE THIS.
55 /* Type handles some changes in nefarious 1.0 (was 0.5.0)
56 * 4 - nefarious 0.4.x and other ircds
57 * 5 - nefarious 1.0.x and higher (Branch Revision)
58 * 6 - nefarious 1.0.x and higher (Trunk Revision)
59 */
60 "type" "5";
61 "host_in_topic" "1"; //Set to 1 if your Nefarious server have the HOST_IN_TOPIC F:line set to TRUE.
62 "max_users" "256"; // You can save a little memory by setting this to a lower value.
63 "force_n2k" "1"; // Use extended (5-digit) numnick for self, even if 3 are possible.
64 "ping_freq" "60";
65 "ping_timeout" "90";
66 "max_cycles" "30"; // max uplink cycles before giving up
67 // Admin information is traditionally: location, location, email
68 // This shows up on a /admin x3.afternet.services command.
69 "admin" (
70 "AfterNET IRC Network",
71 "www.afternet.org",
72 "Support Staff <support@afternet.org>"
73 );
74 /* extended_accounts -
75 * enable this for nefarious 0.4.x and higher and in ircd.conf add F:EXTENDED_ACCOUNTS:TRUE.
76 * Sends 'AC R nick account' instead of 'AC nick account' and allows
77 * for renames, login-on-connect, etc. If you use stock ircu set to 0. */
78 "extended_accounts" "1";
79
80 /* the following two settings are for ircu's HEAD_IN_SAND features, and are equivelent to
81 * the F: lines in ircu's ircd.conf. both can be disabled by commenting them out. */
82 //"his_servername" "*.AfterNET.org"; // hidden server name, shown in remote /whois requests
83 //"his_servercomment" "AfterNET IRC Network";
84 };
85
86 /* SERVICES (Bot nicknames) *******************************************
87 * Each section describes one service nickname and the details of that
88 * bot's features
89 * You may disable a service by commenting out its "nick" config item.
90 */
91 "services" {
92 /* Nickserv is the bot you register with and auth to.
93 * Afternet uses the name "Authserv" without the nickname reservation
94 * features enabled. Some nets call it Nickserv and configure it to
95 * reserve nicks.
96 */
97 "nickserv" {
98 "nick" "AuthServ"; // The bots nick on IRC
99
100 // If you want to have *@* as the default hostmask, set
101 // default_hostmask. I highly reccomend this, and its required
102 // for login-on-connect to work.
103 "default_hostmask" "1";
104
105 // do we warn users when someone new auths to their account?
106 "warn_clone_auth" "1"; // -X3- warning: foobar has authed to your account
107
108 // default max number of logins allowed on new accounts. Users can set it
109 // to something different using authserv commands.
110 "default_maxlogins" "3";
111
112 // hard_maxlogins is the ammount the user cant override.
113 "hard_maxlogins" "10";
114
115 // This names a file that contains easily guessed passwords.
116 // It always contains "password", "<password>" and the user's
117 // account name.
118 // uncomment if you have a dict file.
119 //"dict_file" "/usr/share/dict/words";
120
121 // Minimum number of various types of characters permitted in
122 // a password. Authserv will enforce these.
123 "password_min_length" "4";
124 "password_min_digits" "0";
125 "password_min_upper" "0";
126 "password_min_lower" "0";
127
128 // What should valid account and nicks look like?
129 // If valid_nick_regex is omitted, valid_account_regex is used
130 // for both nicks and accounts.
131 // Be very carefull changing these. This default is
132 // basically limited to letters, numbers, dash and underscore.
133 "valid_account_regex" "^[-_a-z0-9A-Z]{2,15}$";
134 "valid_nick_regex" "^[-_a-z][-_a-z0-9]*$";
135
136 // Whats a valid hostname look like for fakehosts?
137 "valid_fakehost_regex" "^[-_a-zA-Z0-9.]+$";
138
139 // "Nickserv" networks, set this to 0. "Authserv" networks,
140 // set it to 1.
141 "disable_nicks" "1";
142 // One account may only own this many nicks.
143 "nicks_per_account" "4";
144
145 // Send a warning when someone uses a registered nick?
146 "warn_nick_owned" "0";
147
148 // What to do when someone uses the NickServ "reclaim" command?
149 // This can be one of "none", "warn", "svsnick", or "kill", but
150 // stock ircu does not support svsnick -- you need nefarious.
151 "reclaim_action" "none";
152
153 // What (else) to do when someone uses a registered nick?
154 // This can be anything "reclaim_action" can be, but it makes
155 // more sense to use the "warn_nick_owned" instead of "warn".
156 "auto_reclaim_action" "none";
157
158 // How long to wait before doing the auto_reclaim_action?
159 // This is ignored if "auto_reclaim_action" is "none".
160 "auto_reclaim_delay" "0";
161
162 // access control for who can change account flags
163 // See /msg authserv help account flags
164 "flag_levels" {
165 "g" "800"; // God mode
166 "lc_h" "800"; // support helper (lower case h)
167 "uc_H" "800"; // net helper (upper case H)
168 "S" "999"; // O3 access suspended
169 "b" "1"; // Bot (Hidden from !staff etc)
170 };
171
172 // and for who can change epithets for staff
173 // epithets show up in /whois as another line about the person.
174 "set_epithet_level" "800";
175
176 // what opserv access level do you need to set somebody else's level?
177 "modoper_level" "850";
178
179 // how often should accounts be expired?
180 "account_expire_freq" "1d";
181
182 // how long until an account with access to any channel(s) expires?
183 "account_expire_delay" "900d";
184
185 // how long until an account with no access to any channels expires?
186 "nochan_account_expire_delay" "365d";
187
188 // If somebody keeps guessing passwords incorrectly, do we gag them?
189 "autogag_enabled" "1";
190 "autogag_duration" "30m";
191 "auth_policer" {
192 "size" "5";
193 "drain-rate" "0.05";
194 };
195
196 // How to integrate with email cookies?
197 // In order to use mail, mail must be enabled and configured
198 // down below in the mail section of this config file.
199 "email_enabled" "1"; // Allow account verification and password reset by email.
200 "email_required" "1"; // if above is 1, require verification to authenticate.
201 "cookie_timeout" "2d"; // how long before we expire cookies?
202 "accounts_per_email" "1"; // How many people can use the same email account.
203
204 "email_search_level" "600"; // minimum OpServ level to search based on email address (search print email *foo*)
205 "email_visible_level" "800"; // minimum OpServ level to see somebody's email address
206 "titlehost_suffix" "AfterNET.Org"; // 'USET title' sets a fake hostname of name.title.titlehost on a user.
207 "set_title_level" "900"; // Access to use 'uset title'.
208 "set_fakehost_level" "1000"; //Access to set a freeform fakehost. (uset fakehost)
209
210 // A list of denied words in the fakehosts
211 "denied_fakehost_words" ("sex",
212 "fuck",
213 "asshole");
214
215 // This is a hacked in feature which exports every account change to a file sync.log. Afternet uses this and
216 // a bunch of custom PHP scripts to make our websites SQL user db the same as authserv, every 5 minutes.
217 // You have to be a pretty handy person with the shell commands and programming to make use of this..
218 "sync_log" "0"; // Log account changes to a file for syncing w/ a website?
219
220 // Nickserv 'style' setting affects .userlist and other outputs.
221 "default_style" "n"; // can be: n = normal, c = clean, or a = advanced.
222
223
224 // LDAP configuration(s)
225 // THIS IS EXPERIMENTAL! DO NOT USE IT IF YOU ARNT'T A DEVELOPER!!
226 // LDAP stands for light directory access protocol. its what many larger orgs use for central user/password management. Its also the core technology behind windows active directory.
227 // If you have an ldap server, you can configure X3 to use it instead of saving passwords locally.
228 //"ldap_enable" "1";
229 //"ldap_host" "ldap.yourdomain.com";
230 // port defaults to ldap default 389 if left commented
231 //"ldap_port" "389";
232 //"ldap_base" "ou=Users,dc=yournet,dc=org";
233 //"ldap_dn_fmt" "uid=%s,ou=Users,dc=afternet,dc=org";
234 // automatically create accounts if they exist in ldap but not x3
235 //"ldap_autocreate" "1";
236 };
237
238 /*
239 * OpServ is the bot opers use to do glines, look at info etc.
240 * Afternet uses the nickname "O3" for this as its easier to type.
241 */
242 "opserv" {
243 "nick" "O3";
244 // should use of this service be limited to global opers?
245 "privileged" "1";
246
247 // fullname for service
248 "description" "Oper Service Bot"; // (for /whois)
249
250 // hostname for service; only used if "description" is also set
251 "hostname" "X3.AfterNET.Services"; // (for /whois)
252
253 // What channel should opserv send debug output to?
254 // I don't have any idea what debug info goes here. You can configure
255 // debugging logs in the log section to go to any channel.
256 // Probably safest to set to your oper channel.
257 "debug_channel" "#TheOps"; // Bot will join this channel, also.
258 "debug_channel_modes" "+tnOS"; // Modes get set every time X3 starts up
259
260 // where to send general alerts (e.g. flood alerts)?
261 "alert_channel" "#TheOps"; // Bot will join this channel, also.
262 "alert_channel_modes" "+"; // Modes get set every time X3 starts up
263
264 // who to tell about staff auths?
265 "staff_auth_channel" "#OperServ"; // Bot will join this channel, also.
266 "staff_auth_channel_modes" "+tnOs"; // modes get set every time X3 starts up
267
268 // which channels should all services autojoin?
269 "autojoin_channels" ("#TheOps", "#OperServ");
270
271 // how many clones to allow from an untrusted host?
272 // Use this carefully, users with half the # of clones will trigger this
273 // when a server pings out and they reconnect before the old connection is noticed
274 // to be dead by the server.. so set it at about twice the # you want to allow to
275 // avoid false positives.
276 "untrusted_max" "6"; // 3 connections and 3 ghosts, 7th connection causes a gline.
277
278 // how long of a g-line should be issued if the max hosts is exceeded?
279 "clone_gline_duration" "2h"; // durations are smhdmy
280
281 // how long to g-line for ?block (or, by default, for trace gline)?
282 "block_gline_duration" "12h";
283
284 // how long to shun for ?sblock (or, by default, for trace shun)?
285 "block_shun_duration" "12h";
286
287 // When a user joins an illegal channel, O3 joins it and locks it down.
288 // how long to keep an illegal channel locked down (seconds)?
289 "purge_lock_delay" "60";
290
291 // ------------------------------------------------------------------
292 // Defcon Settings
293 //
294 // No new channel registrations 1
295 // No New Nick Registrations 2
296 // No Channel Mode changes 4
297 // Force Chan Mode 8
298 // Use Reduced Session Limit 16
299 // KILL any new clients trying to connect 32
300 // Services will ignore everyone but opers 64
301 // Services will silently ignore everyone but opers 128
302 // GLINE all new clients trying to connect 256
303 // No new memos sent to block MemoServ attacks 512
304 // SHUN all new clients trying to connect 1024
305 //
306 // These are the values are added together to determine each defcon setting:
307 "DefCon1" "415";
308 "DefCon2" "159";
309 "DefCon3" "31";
310 "DefCon4" "23";
311
312 // Default defcon level, 5 is running all normally
313 "DefConLevel" "5";
314
315 // If defcon is limiting sessions then how many sessions should O3 allow?
316 "DefConSessionLimit" "2";
317
318 // Length of glines and shuns set on newly connecting clients, if defcon is glining
319 // or shunning newly connecting clients
320 "DefConGlineExpire" "5m";
321
322 // Mode to set on all channels if defcon is forcing channel modes on all channels
323 "DefConChanModes" "+r";
324
325 // If not set to 0, defcon will set back to level 5 after this time
326 "DefConTimeOut" "15m";
327
328 // Set to 1 to send a notice to all users when defcon levels are changed
329 "GlobalOnDefcon" "0";
330
331 // If set to 1 along with the notice that the levels are changing an extra
332 // notice will be sent
333 "GlobalOnDefconMore" "0";
334
335 // GlobalOnDefconMore notice.
336 "DefconMessage" "Put your message to send your users here. Dont forget to uncomment GlobalOnDefconMore";
337
338 // This notice will be used if GlobalOnDefcon and GlobalOnDefconMore are off
339 "DefConOffMessage" "Services are now back to normal, sorry for any inconvenience";
340
341 // Reason placed in defcon Glines and Shuns.
342 "DefConGlineReason" "This network is currently not accepting connections, please try again later";
343
344 // ------------------------------------------------------------------
345
346 // To use geoip support in Opserv WHOIS then you will need to install
347 // the c GeoIP api. Its available on http://www.maxmind.com, also on
348 // apt on debian and ubuntu. The dat files can also be obtained
349 // from the earlier URL. Place them in your X3 dir and away you go.
350 // X3 will need a recompile once you install the c api. If there is a
351 // GeoIP City Data file then the GeoIP data file will be ignored. However
352 // bear in mind that the city data file is a lot larger than the plain
353 // country data file so does take a bit longer to query. If you are
354 // expieriencing ping timeouts you may need to tweak X3's I:line.
355 "geoip_data_file" "./GeoIP.dat";
356 "geoip_city_data_file" "";
357
358 // The join-flood policer code goes off all the time when a server
359 // goes down (and everyone reconnects) so i don't reccomend using it.
360 // Automatically moderate join flooded channels?
361 "join_flood_moderate" "0";
362 // channel join flood policer params?
363 "join_policer" {
364 "size" "20";
365 "drain-rate" "1";
366 };
367 // Don't moderate and warn channels unless there are more than
368 // join_flood_moderate_threshold users in the channel. the
369 // value 0 will disable the threshold.
370 "join_flood_moderate_threshold" "50";
371 // new user flood policer params
372 "new_user_policer" {
373 "size" "200";
374 "drain-rate" "3";
375 };
376 // Min opserv level needed to set 'silent' glines in trace/addalert
377 // (nefarious only)
378 "silent_level" "700";
379 };
380
381 "chanserv" {
382 "nick" "X3";
383
384 // The umodes - add +d if you use nefarious 1.0 and you added 'b:lines'
385 // to pass cmdchar through to chanserv anyway.
386 "modes" "+iok";
387
388 // The off_channel setting takes one of three numerical values:
389 // 0 = off
390 // 1 = use a registered channel mode, have services op themselves
391 // 2 = all of the above, and a channel setting to have ChanServ not
392 // idle in the channel
393 // NOTE: +z mode, needed for this to work, is inharently flawed and
394 // will cause desynch, so don't use it IMO -Rubin.
395 "off_channel" "no";
396
397 // Infolines are sent when channel users join the channel. Users set them with USET INFO in X3.
398 // how long should a person be unseen before resending infoline?
399 "info_delay" "120";
400
401 // Greetings can be configured by the channel manager(s) and sent to users who join the channel.
402 // Many people (rightly) find this annoying, so keep them short.
403 // maximum greeting length
404 "max_greetlen" "120";
405
406 // maximum users in a channel userlist
407 "max_chan_users" "512";
408 // maximum bans on a channel banlist
409 "max_chan_bans" "512";
410 // maximum length of a user's infoline
411 "max_userinfo_length" "400"; // for god sake lower this. 80 seems good.
412
413 // If SET DynLimit is on and there are N users in the channel, ChanServ will
414 // try to keep the limit at N+<adjust_threshold>. This makes the channel
415 // somewhat protected from clone attacks.
416 "adjust_threshold" "5";
417 // .. but ChanServ will only increment or decrement the limit this often.
418 "adjust_delay" "30"; // (seconds)
419
420 // How often to look for expired bans?
421 "ban_timeout_freq" "2m";
422
423 // How often to look for channels that have expired?
424 "chan_expire_freq" "1d";
425
426 // How long is a channel unvisited (by masters or above) before it can be expired?
427 "chan_expire_delay" "30d";
428
429 // what !set options should we show when user calls "!set" with no arguments?
430 "set_shows" ("DefaultTopic", "TopicMask", "Greeting", "UserGreeting", "Modes", "PubCmd", "InviteMe", "UserInfo", "EnfOps", "EnfModes", "EnfTopic", "TopicSnarf", "Setters", "CtcpReaction", "BanTimeout", "Protect", "Toys", "DynLimit", "NoDelete");
431
432 // A list of !8ball responses
433 "8ball" (
434 "Are you out of your MIND?",
435 "It won't happen, not a chance, definitely no.",
436 "Outlook seems bleak.",
437 "My sources say no.",
438 "You bet!",
439 "It is decidedly so.",
440 "It's hard to be sure.",
441 "Most definitely.",
442 "In your dreams...",
443 "If the prophets wish it...",
444 "Forecast hazy, try again later.",
445 "I don't know!",
446 "Absolutely!",
447 "Never.",
448 "Yes.",
449 "No.",
450 "Maybe.");
451
452 // channel(s) that support helpers must be in to be helping
453 // if this is a list, any one by itself will do
454 "support_channel" ("#Operations", "#Help");
455
456 // maximum number of channels a user may have. ( FORCE can override )
457 "max_owned" "2";
458
459 // how long between automatic topic and userlist refreshes with TopicRefresh/Resync
460 "refresh_period" "10h";
461
462 // what should !access say for various staff?
463 "irc_operator_epithet" "AfterNET IRC Operator";
464 "network_helper_epithet" "AfterNET Network Helper";
465 "support_helper_epithet" "AfterNET Support Helper";
466
467 // what should a newly registered channel get as its modes?
468 "default_modes" "+nt";
469
470 // minimum opserv access to set, clear or override channel nodelete setting?
471 "nodelete_level" "1";
472
473 // when does god mode time out?
474 "god_timeout" "30m";
475 };
476
477 /* Global is a service bot that can send out network-wide messages for you. I
478 * like to set ours' nick to 'AfterNET', but some people use 'Global'
479 */
480 "global" {
481 "nick" "Global";
482 // should users get community announcements by default or not?
483 // community announcements are a type of global that users may
484 // opt into (or out of, depending on this setting)
485 "announcements_default" "on";
486 };
487
488
489 "spamserv" {
490 // You may enable this service by removing the double slashes from the config
491 // item. To disable it again add the double slashes back.
492 // "nick" "SpamServ";
493
494 // debug channel
495 "debug_channel" "#operserv";
496
497 // url of the network rules. if you don't have network rules, remove this key.
498 "network_rules" "http://www.afternet.org/aup";
499
500 // trigger for spamserv; remove this key to disable the trigger
501 "trigger" "%";
502
503 // ban duration of a short timedban.
504 "short_ban_duration" "15m";
505
506 // ban duration of a long timedban.
507 "long_ban_duration" "1h";
508
509 // duration of a gline. SpamServ will issue it after several violations and a kill.
510 "gline_duration" "1h";
511
512 // users may add "exception_max" exceptions to the list. IRCOps can override "exception_max".
513 "exception_max" "10";
514
515 // minimum & maximum length of an exception.
516 "exception_min_len" "4";
517 "exception_max_len" "12";
518
519 // users may add "badword_max" badwords to the list. IRCOps can override badword_max".
520 "badword_max" "10";
521
522 // minimum & maximum length of an badword.
523 "badword_min_len" "4";
524 "badword_max_len" "12";
525
526 // if someone advertises a channel, which doesn't exist (channel is empty, no users),
527 // SpamServ doesn't punish the user.
528 // enable this setting, if SpamServ has to ignore advertisements of channels, which do not exist.
529 // disable this setting, if SpamServ has to punish the users whenever they advertise.
530 "adv_chan_must_exist" "1";
531
532 // remove all mirc codes from messages before checking for advertisements.
533 // if this setting is disabled and someone spams a url which
534 // contains a bold char, SpamServ doesn't punish him.
535 "strip_mirc_codes" "1";
536
537 // enable this, if SpamServ has to "follow" ChanServ, when a channel moves or merges.
538 // disable it, if it shouldn't be possible to move or merge SpamServ with /msg chanserv move|merge.
539 "allow_move_merge" "1";
540 };
541 };
542
543 /* MODULES (optional components) *************************************************
544 * These must be explicitly compiled in (see ./configure --help)
545 * When enabled, they are configured here..
546 */
547 "modules" {
548 /* Helpserv is a help-queue tracker module for your #support channels, if
549 * they are busy. It issues users tickets, and tracks the next available helper.
550 */
551 "helpserv" {
552 // The description/fullname field
553 "description" "Help Queue Manager"; // (for whois)
554
555 // HelpServ bots log all of their requests to this file, with
556 // details on when they were opened, closed, their contents,
557 // helper, etc. The file is written in saxdb format for easy
558 // parsing by external programs. Please note that you cannot
559 // use ?set to change this value while x3 is running.
560 "reqlogfile" "helpservreq.log";
561
562 // How long should a helpserv be inactive (no requests assigned)
563 // before it can be unregistered by the expire command?
564 "expiration" "60d";
565
566 // If a user prefix's this before their helpserv commands then instead
567 // of a request being opened, they will be able to use helpserv commands.
568 "user_escape" "@";
569 };
570 /* SockCheck reads sockcheck.conf and can do configurable scans
571 * to probe for open relays in an attempt to stop drones from using
572 * the network. DO NOT enable this unless you have permission from
573 * your ISP.. the probes will show up as attacks on everyones firewalls
574 * and you will get a lot of complaints.
575 */
576 "sockcheck" {
577 // disabling this hopefully
578 "max_sockets" "0"; // 64 is a good # of concurrent clients to be checked
579 "max_read" "1024"; // don't read more than 1024 bytes from any client
580 "gline_duration" "1d"; // issue G-lines lasting one hour
581 "max_cache_age" "60"; // only cache results for 60 seconds
582 "address" "192.168.1.10"; // do proxy tests from this address
583 };
584 /* Snoop sends connect, quit, join, and part messages for every user
585 * on the network, and helps in finding drones. Put it somewhere secure
586 * so your users privacy is honored.
587 */
588 "snoop" {
589 // Where to send snoop messages?
590 "channel" "#MrSnoopy";
591 // Which bot?
592 "bot" "O3";
593 // Show new users and joins from net joins? (off by default)
594 "show_bursts" "0";
595 };
596 /* Track works just like Snoop except it only sends events for users
597 * who have been specified
598 * DANGER: track is currently very broken, and will crash x3 and possibly corrupt your db file.
599 * Unless your a developer, dont even compile it in!
600 */
601 "track" {
602 // What to track by default?
603 "snomask" "nick,join,part,kick,new,del,auth,chanmode,umode";
604 // Where to send snoop messages?
605 "channel" "#MrPeanuts";
606 // Which bot?
607 "bot" "O3";
608 // Show new users and joins from net joins? (off by default)
609 "show_bursts" "0";
610 };
611 /* Memoserv lets users send messages to other users accounts.
612 */
613 "memoserv" {
614 "bot" "MemoServ";
615 "modes" "+k";
616 "message_expiry" "30d"; // age when messages are deleted; set
617 // to 0 to disable message expiration
618 "limit" "30"; // Max amount of messages a person can get.
619 };
620 };
621
622 "policers" {
623 "commands-luser" {
624 "size" "5";
625 "drain-rate" "0.5";
626 };
627 };
628
629 "rlimits" {
630 "data" "50M";
631 "stack" "6M";
632 "vmem" "100M";
633 };
634
635 /* MAIL (if and how X3 sends mail ) *********************************
636 * Mainly Authserv/Nickserv send mail, See the Nickserv
637 * section for additional mail settings also.
638 */
639 "mail" {
640 "enable" "1";
641 "mailer" "/usr/sbin/sendmail";
642 // OR Afternet uses a custom script to keep the services IP hidden:
643 // "mailer" "/home/x3user/x3/sendmail.sh";
644 "from_address" "supportrobot@afternet.org";
645 "extra_headers" ("AfterNET-Services: x3");
646 "body_prefix_first" ("Welcome to AfterNET, looks like this is your first email from us.");
647 "body_prefix" ("AfterNET Support - User and Channel registration system");
648 "body_suffix_first" ("", "AfterNET IRC Network", "http://www.afternet.org");
649 "body_suffix" ("", "AfterNET IRC Network", "http://www.afternet.org", "support@afternet.org","irc://irc.afternet.org/afternet");
650 };
651
652 /* DBS (Databases) *************************************************
653 * let you configure what databases go in what files.
654 *
655 * This default sets up everything in one big x3.db file.
656 *
657 * If you leave this section out, each database will be in its own file,
658 * and they will be written out every half hour.
659 */
660 "dbs" {
661 // This just illustrates how you can jam every database into one huge ("mondo") file.
662 "ChanServ" { "mondo_section" "ChanServ"; };
663 "gline" { "mondo_section" "gline"; };
664 "shun" { "mondo_section" "shun"; };
665 "Global" { "mondo_section" "Global"; };
666 "HelpServ" { "mondo_section" "HelpServ"; };
667 "modcmd" { "mondo_section" "modcmd"; };
668 "NickServ" { "mondo_section" "NickServ"; };
669 "OpServ" { "mondo_section" "OpServ"; };
670 "sendmail" { "mondo_section" "sendmail"; };
671 "SpamServ" { "mondo_section" "SpamServ"; };
672
673 // These are the options if you want a database to be in its own file.
674 "mondo" {
675 // Where to put it?
676 "filename" "x3.db";
677 // How often should it be saved?
678 // (You can disable automatic saves by setting this to 0.)
679 "frequency" "30m";
680 };
681 };
682
683 /* LOGS (If and how X3 logs data ) ***********************************
684 * LOGS sets up where X3 logs various kinds of info to.
685 */
686 "logs" {
687 // Two kinds of items exist in this section.
688
689 // One is a facility configuration subsection. These have the
690 // name of a log facility (one of "ChanServ", "Global",
691 // "HelpServ", "NickServ", "OpServ", "ProxyCheck", or "x3") and
692 // the value is a subsection. The "x3" log facility is a
693 // catch-all/fall-back facility.
694 "x3" {
695 // The "max_age" option says how long to keep log audit entries.
696 "max_age" "10h";
697 // The "max_count" option says how many log audit entries to keep.
698 "max_count" "1024";
699 // Audit (command tracking) entries are discarded if they exceed
700 // either limit: for example, if entry 500 is 10 minutes old, it
701 // will be discarded next time any audit command is logged.
702 };
703
704 // The other kind of item is a target list. The name of each is a
705 // description of facility-and-severity combinations, and the value
706 // is a string (or list of strings) that describe where matching
707 // events should be logged. As a special case, the facility * will
708 // specify how to log events regardless of their true facility, and
709 // the severity * will match all severities for a facility.
710 // Log targets use a psuedo-URI syntax: one of "file:filename",
711 // "std:[out|err|n]" where n is a valid file descriptor, or
712 // "irc:#channel" (nicknames or server masks can be used instead
713 // of channel names, but should be used with care).
714 // The severity is one of "replay", "debug", "command", "info",
715 // "override", "staff", "warning", "error", or "fatal".
716 // WARNING: If any severity except "replay" for a facility is left
717 // unspecified, it will use the default target (for example,
718 // "file:chanserv.log"). For "replay" severity, you must ALWAYS
719 // list a target to log it -- this is because it is very rarely
720 // useful.
721 "*.*" ("std:out", "file:everything.log"); // does NOT suppress any defaults
722 "*.override,error,fatal" "irc:#TheOps"; // report all uses of staff commands
723 "*.staff" "irc:#MrSnoopy"; // report all uses of staff commands
724 "ChanServ.*" "file:chanserv.log"; // duplicates the default behavior
725 "ProxyCheck.*" (); // stop it from logging anything
726 };