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