ircd: add oper mode, raise limits

This commit is contained in:
lassulus 2021-01-08 00:36:43 +01:00
parent dbb2024585
commit 90b0cb68db

View File

@ -11,12 +11,12 @@
hello hello
''; '';
config = '' config = ''
loadmodule "extensions/m_omode";
serverinfo { serverinfo {
name = "${config.krebs.build.host.name}.irc.r"; name = "${config.krebs.build.host.name}.irc.r";
sid = "1as"; sid = "1as";
description = "miep!"; description = "miep!";
network_name = "irc.r"; network_name = "irc.r";
hub = yes;
vhost = "0.0.0.0"; vhost = "0.0.0.0";
vhost6 = "::"; vhost6 = "::";
@ -26,7 +26,7 @@
#ssl_dh_params = "etc/dh.pem"; #ssl_dh_params = "etc/dh.pem";
#ssld_count = 1; #ssld_count = 1;
default_max_clients = 10000; default_max_clients = 100000;
#nicklen = 30; #nicklen = 30;
}; };
@ -43,19 +43,31 @@
/* Listen on IPv6 (if you used host= above). */ /* Listen on IPv6 (if you used host= above). */
host = "::"; host = "::";
port = 6667; port = 6667;
sslport = 9999; sslport = 6697;
}; };
class "users" { class "users" {
ping_time = 2 minutes; ping_time = 2 minutes;
number_per_ident = 10; number_per_ident = 10;
number_per_ip = 2048; number_per_ip = 4096;
number_per_ip_global = 4096; number_per_ip_global = 4096;
cidr_ipv4_bitlen = 24; cidr_ipv4_bitlen = 24;
cidr_ipv6_bitlen = 64; cidr_ipv6_bitlen = 64;
number_per_cidr = 65536; number_per_cidr = 65536;
max_number = 3000; max_number = 100000;
sendq = 1 megabyte; sendq = 10 megabyte;
};
privset "op" {
privs = oper:admin;
};
operator "aids" {
user = "*@*";
password = "balls";
flags = ~encrypted;
snomask = "+s";
privset = "op";
}; };
exempt { exempt {
@ -93,12 +105,13 @@
channel_target_change = yes; channel_target_change = yes;
disable_local_channels = no; disable_local_channels = no;
}; };
general { general {
#maybe we want ident someday? #maybe we want ident someday?
default_floodcount = 1000; default_floodcount = 10000;
disable_auth = yes; disable_auth = yes;
throttle_duration = 1; throttle_duration = 1;
throttle_count = 1000; throttle_count = 10000;
}; };
''; '';
}; };