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