Development Team/services-darenet/sample config
(New page: Sample configuration file. This is only provided here for quick reference, and does not necessairly contain all options or any default values as used by DareNET. <pre> /******************...) |
|||
| Line 3: | Line 3: | ||
<pre> | <pre> | ||
/****************************************************************************** | /****************************************************************************** | ||
| - | * services-darenet example configuration file. | + | * services-darenet 1.2.0 example configuration file. |
* | * | ||
* This file allows two kinds of comments. Whitespaces between tokens are | * This file allows two kinds of comments. Whitespaces between tokens are | ||
| Line 80: | Line 80: | ||
"password_min_upper" "0"; | "password_min_upper" "0"; | ||
"password_min_lower" "0"; | "password_min_lower" "0"; | ||
| + | "valid_account_regex" "^[-_a-z0-9A-Z]{2,15}$"; | ||
| + | "valid_nick_regex" "^[-_a-z][-_a-z0-9]*$"; | ||
| + | "valid_fakehost_regex" "^[-_a-zA-Z0-9.]+$"; | ||
| + | "force_handles_lowercase" "0"; | ||
| + | "disable_nicks" "0"; | ||
| + | "nicks_per_account" "10"; | ||
| + | "warn_nick_owned" "1"; | ||
| + | "reclaim_action" "svsnick"; | ||
| + | "auto_reclaim_action" "0"; | ||
| + | "auto_reclaim_delay" "0"; | ||
| + | |||
| + | "flag_levels" { | ||
| + | "g" "800"; | ||
| + | "lc_h" "800"; | ||
| + | "uc_H" "800"; | ||
| + | "S" "900"; | ||
| + | "b" "1"; | ||
| + | }; | ||
| + | |||
| + | "set_epithet_level" "800"; | ||
| + | "modoper_level" "850"; | ||
| + | "account_expire_freq" "1d"; | ||
| + | "account_expire_delay" "900d"; | ||
| + | "nochan_account_expire_delay" "365d"; | ||
| + | "autogag_enabled" "1"; | ||
| + | "autogag_duration" "30m"; | ||
| + | |||
| + | "auth_policer" { | ||
| + | "size" "5"; | ||
| + | "drain-rate" "0.05"; | ||
| + | }; | ||
| + | |||
| + | "email_enabled" "1"; | ||
| + | "email_required" "1"; | ||
| + | "cookie_timeout" "2d"; | ||
| + | "accounts_per_email" "1"; | ||
| + | "email_search_level" "600"; | ||
| + | "email_visible_level" "800"; | ||
| + | "titlehost_suffix" "darenet"; | ||
| + | "set_title_level" "900"; | ||
| + | "set_fakehost_level" "1000"; | ||
| + | |||
| + | "denied_fakehost_words" ( | ||
| + | "fuck", | ||
| + | "shit", | ||
| + | "asshole", | ||
| + | "cunt", | ||
| + | "darenet" | ||
| + | ); | ||
| + | |||
| + | "sync_log" "1"; | ||
| + | "default_style" "n"; | ||
| + | |||
| + | "ldap_enable" "0"; | ||
| + | "ldap_uri" "ldaps://ldap.darenet.org:636"; | ||
| + | "ldap_base" "ou=Users,dc=darenet,dc=org"; | ||
| + | "ldap_dn_fmt" "uid=%s,ou=Users,dc=darenet,dc=org"; | ||
| + | "ldap_autocreate" "1"; | ||
| + | "ldap_admin_dn" "cn=Admin,dc=darenet,dc=org"; | ||
| + | "ldap_admin_pass" "xxxxxxxxxxx"; | ||
| + | |||
| + | "ldap_object_classes" ( | ||
| + | "top", | ||
| + | "inetOrgAnonAccount" | ||
| + | ); | ||
| + | |||
| + | "ldap_field_account" "uid"; | ||
| + | "ldap_field_password" "userPassword"; | ||
| + | "ldap_field_email" "mail"; | ||
| + | "ldap_oper_group_dn" "cn=Opers,ou=Groups,dc=darenet,dc=org"; | ||
| + | "ldap_oper_group_level" "99"; | ||
| + | "ldap_field_group_member" "memberUid"; | ||
| + | "ldap_timeout" "10"; | ||
| + | }; | ||
| + | |||
| + | "opserv" { | ||
| + | "nick" "OperServ"; | ||
| + | "privileged" "1"; | ||
| + | "description" "Control Service for DareNET's Armed Forces"; | ||
| + | "hostname" "darenet.org"; | ||
| + | "debug_channel" "#debug"; | ||
| + | "debug_channel_modes" "ntsiO"; | ||
| + | "alert_channel" "#opers"; | ||
| + | "alert_channel_modes" "ntsO"; | ||
| + | "staff_auth_channel" "#auths"; | ||
| + | "staff_auth_channel_modes" "ntsO"; | ||
| + | |||
| + | "autojoin_channels" ( | ||
| + | "#debug", | ||
| + | "#opers", | ||
| + | "#staff", | ||
| + | "auths" | ||
| + | ); | ||
| + | |||
| + | "untrusted_max" "6"; | ||
| + | "clone_gline_duration" "30m"; | ||
| + | "block_gline_duration" "1h"; | ||
| + | "block_shun_duration" "1h"; | ||
| + | "purge_lock_delay" "60"; | ||
| + | |||
| + | "DefCon1" "415"; | ||
| + | "DefCon2" "159"; | ||
| + | "DefCon3" "31"; | ||
| + | "DefCon4" "23"; | ||
| + | "DefConLevel" "5"; | ||
| + | "DefConSessionLimit" "2"; | ||
| + | "DefConGlineExpire" "5m"; | ||
Revision as of 04:16, 27 September 2008
Sample configuration file. This is only provided here for quick reference, and does not necessairly contain all options or any default values as used by DareNET.
/******************************************************************************
* services-darenet 1.2.0 example configuration file.
*
* This file allows two kinds of comments. Whitespaces between tokens are
* ignored. All strings (even if they're just numbers) MUST be enclosed in
* double quotes. There must be a semicolon after every key/value pair.
*/
/* UPLINKS */
"uplinks" {
"Primary-Hub" {
"address" "127.0.0.1";
"port" "8888";
"password" "laoo,rpe";
"their_password" "laoo,rpe";
"enable" "1";
"max_tries" "10";
"bind_address" "127.0.0.1";
};
"Hub-West" {
"address" "192.168.234.123";
"port" "8888";
"password" "ekrpat";
"their_password" "ekrpat";
"enable" "0";
"max_tries" "1";
"bind_address" "192.168.1.10";
};
};
/* SERVER DETAILS */
"server" {
"hostname" "services.darenet.org";
"description" "DareNET Network Services";
"network" "DareNET";
"hidden_host" "user.darenet";
"hidden_host_type" "1";
"key1" "45432";
"key2" "76934";
"key3" "98336";
"prefix" "DareNET";
"numeric" "1";
"type" "7";
"host_in_topic" "1";
"max_users" "256";
"force_n2k" "1";
"ping_freq" "60";
"ping_timeout" "90";
"max_cycles" "30";
"admin" (
"DareNET IRC Network",
"www.darenet.org",
"Support <support@darenet.org"
);
"extended_accounts" "1";
"his_servercomment" "*.darenet.org";
};
/* SERVICES BOTS */
"services" {
"nickserv" {
"nick" "NickServ";
"default_hostmask" "1";
"warn_clone_auth" "1";
"default_maxlogins" "3";
"hard_maxlogins" "5";
"dict_file" "/usr/share/dict/words";
"password_min_length" "4";
"password_min_digits" "0";
"password_min_upper" "0";
"password_min_lower" "0";
"valid_account_regex" "^[-_a-z0-9A-Z]{2,15}$";
"valid_nick_regex" "^[-_a-z][-_a-z0-9]*$";
"valid_fakehost_regex" "^[-_a-zA-Z0-9.]+$";
"force_handles_lowercase" "0";
"disable_nicks" "0";
"nicks_per_account" "10";
"warn_nick_owned" "1";
"reclaim_action" "svsnick";
"auto_reclaim_action" "0";
"auto_reclaim_delay" "0";
"flag_levels" {
"g" "800";
"lc_h" "800";
"uc_H" "800";
"S" "900";
"b" "1";
};
"set_epithet_level" "800";
"modoper_level" "850";
"account_expire_freq" "1d";
"account_expire_delay" "900d";
"nochan_account_expire_delay" "365d";
"autogag_enabled" "1";
"autogag_duration" "30m";
"auth_policer" {
"size" "5";
"drain-rate" "0.05";
};
"email_enabled" "1";
"email_required" "1";
"cookie_timeout" "2d";
"accounts_per_email" "1";
"email_search_level" "600";
"email_visible_level" "800";
"titlehost_suffix" "darenet";
"set_title_level" "900";
"set_fakehost_level" "1000";
"denied_fakehost_words" (
"fuck",
"shit",
"asshole",
"cunt",
"darenet"
);
"sync_log" "1";
"default_style" "n";
"ldap_enable" "0";
"ldap_uri" "ldaps://ldap.darenet.org:636";
"ldap_base" "ou=Users,dc=darenet,dc=org";
"ldap_dn_fmt" "uid=%s,ou=Users,dc=darenet,dc=org";
"ldap_autocreate" "1";
"ldap_admin_dn" "cn=Admin,dc=darenet,dc=org";
"ldap_admin_pass" "xxxxxxxxxxx";
"ldap_object_classes" (
"top",
"inetOrgAnonAccount"
);
"ldap_field_account" "uid";
"ldap_field_password" "userPassword";
"ldap_field_email" "mail";
"ldap_oper_group_dn" "cn=Opers,ou=Groups,dc=darenet,dc=org";
"ldap_oper_group_level" "99";
"ldap_field_group_member" "memberUid";
"ldap_timeout" "10";
};
"opserv" {
"nick" "OperServ";
"privileged" "1";
"description" "Control Service for DareNET's Armed Forces";
"hostname" "darenet.org";
"debug_channel" "#debug";
"debug_channel_modes" "ntsiO";
"alert_channel" "#opers";
"alert_channel_modes" "ntsO";
"staff_auth_channel" "#auths";
"staff_auth_channel_modes" "ntsO";
"autojoin_channels" (
"#debug",
"#opers",
"#staff",
"auths"
);
"untrusted_max" "6";
"clone_gline_duration" "30m";
"block_gline_duration" "1h";
"block_shun_duration" "1h";
"purge_lock_delay" "60";
"DefCon1" "415";
"DefCon2" "159";
"DefCon3" "31";
"DefCon4" "23";
"DefConLevel" "5";
"DefConSessionLimit" "2";
"DefConGlineExpire" "5m";
