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