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