You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

traditional.yaml 39KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943
  1. # This is the "traditional" or "mainstream" config file for Ergo.
  2. # It tries to replicate the behavior of other ircds, at the cost of not
  3. # taking full advantage of Ergo's features. This config is suitable for use
  4. # in IRCv3 conformance testing.
  5. # network configuration
  6. network:
  7. # name of the network
  8. name: ErgoTest
  9. # server configuration
  10. server:
  11. # server name
  12. name: ergo.test
  13. # addresses to listen on
  14. listeners:
  15. # This version of the config provides a public plaintext listener on
  16. # port 6667 for testing and compatibility with legacy applications.
  17. # We recommend disabling this listener in a production setting
  18. # and replacing it with loopback-only listeners (see default.yaml):
  19. ":6667":
  20. # The standard SSL/TLS port for IRC is 6697. This will listen on all interfaces:
  21. ":6697":
  22. # this is a standard TLS configuration with a single certificate;
  23. # see the manual for instructions on how to configure SNI
  24. tls:
  25. cert: fullchain.pem
  26. key: privkey.pem
  27. # 'proxy' should typically be false. It's for cloud load balancers that
  28. # always send a PROXY protocol header ahead of the connection. See the
  29. # manual ("Reverse proxies") for more details.
  30. proxy: false
  31. # optionally set the minimum TLS version (defaults to 1.0):
  32. # min-tls-version: 1.2
  33. # Example of a Unix domain socket for proxying:
  34. # "/tmp/ergo_sock":
  35. # Example of a Tor listener: any connection that comes in on this listener will
  36. # be considered a Tor connection. It is strongly recommended that this listener
  37. # *not* be on a public interface --- it should be on 127.0.0.0/8 or unix domain:
  38. # "/hidden_service_sockets/ergo_tor_sock":
  39. # tor: true
  40. # Example of a WebSocket listener:
  41. # ":8097":
  42. # websocket: true
  43. # tls:
  44. # cert: fullchain.pem
  45. # key: privkey.pem
  46. # sets the permissions for Unix listen sockets. on a typical Linux system,
  47. # the default is 0775 or 0755, which prevents other users/groups from connecting
  48. # to the socket. With 0777, it behaves like a normal TCP socket
  49. # where anyone can connect.
  50. unix-bind-mode: 0777
  51. # configure the behavior of Tor listeners (ignored if you didn't enable any):
  52. tor-listeners:
  53. # if this is true, connections from Tor must authenticate with SASL
  54. require-sasl: false
  55. # what hostname should be displayed for Tor connections?
  56. vhost: "tor-network.onion"
  57. # allow at most this many connections at once (0 for no limit):
  58. max-connections: 64
  59. # connection throttling (limit how many connection attempts are allowed at once):
  60. throttle-duration: 10m
  61. # set to 0 to disable throttling:
  62. max-connections-per-duration: 64
  63. # strict transport security, to get clients to automagically use TLS
  64. sts:
  65. # whether to advertise STS
  66. #
  67. # to stop advertising STS, leave this enabled and set 'duration' below to "0". this will
  68. # advertise to connecting users that the STS policy they have saved is no longer valid
  69. enabled: false
  70. # how long clients should be forced to use TLS for.
  71. # setting this to a too-long time will mean bad things if you later remove your TLS.
  72. # the default duration below is 1 month, 2 days and 5 minutes.
  73. duration: 1mo2d5m
  74. # tls port - you should be listening on this port above
  75. port: 6697
  76. # should clients include this STS policy when they ship their inbuilt preload lists?
  77. preload: false
  78. websockets:
  79. # Restrict the origin of WebSocket connections by matching the "Origin" HTTP
  80. # header. This setting causes ergo to reject websocket connections unless
  81. # they originate from a page on one of the whitelisted websites in this list.
  82. # This prevents malicious websites from making their visitors connect to your
  83. # ergo instance without their knowledge. An empty list means there are no
  84. # restrictions.
  85. allowed-origins:
  86. # - "https://ergo.chat"
  87. # - "https://*.ergo.chat"
  88. # casemapping controls what kinds of strings are permitted as identifiers (nicknames,
  89. # channel names, account names, etc.), and how they are normalized for case.
  90. # with the recommended default of 'precis', UTF8 identifiers that are "sane"
  91. # (according to RFC 8265) are allowed, and the server additionally tries to protect
  92. # against confusable characters ("homoglyph attacks").
  93. # the other options are 'ascii' (traditional ASCII-only identifiers), and 'permissive',
  94. # which allows identifiers to contain unusual characters like emoji, but makes users
  95. # vulnerable to homoglyph attacks. unless you're really confident in your decision,
  96. # we recommend leaving this value at its default (changing it once the network is
  97. # already up and running is problematic).
  98. casemapping: "precis"
  99. # enforce-utf8 controls whether the server will preemptively discard non-UTF8
  100. # messages (since they cannot be relayed to websocket clients), or will allow
  101. # them and relay them to non-websocket clients (as in traditional IRC).
  102. enforce-utf8: true
  103. # whether to look up user hostnames with reverse DNS. there are 3 possibilities:
  104. # 1. [enabled here] lookup-hostnames enabled, IP cloaking disabled; users will see each other's hostnames
  105. # 2. lookup-hostnames disabled, IP cloaking disabled; users will see each other's numeric IPs
  106. # 3. IP cloaking enabled; users will see cloaked hostnames
  107. lookup-hostnames: true
  108. # whether to confirm hostname lookups using "forward-confirmed reverse DNS", i.e., for
  109. # any hostname returned from reverse DNS, resolve it back to an IP address and reject it
  110. # unless it matches the connecting IP
  111. forward-confirm-hostnames: true
  112. # use ident protocol to get usernames
  113. check-ident: true
  114. # ignore the supplied user/ident string from the USER command, always setting user/ident
  115. # to the following literal value; this can potentially reduce confusion and simplify bans.
  116. # the value must begin with a '~' character. comment out / omit to disable:
  117. #coerce-ident: '~u'
  118. # password to login to the server, generated using `ergo genpasswd`:
  119. #password: "$2a$04$0123456789abcdef0123456789abcdef0123456789abcdef01234"
  120. # motd filename
  121. # if you change the motd, you should move it to ircd.motd
  122. motd: ergo.motd
  123. # motd formatting codes
  124. # if this is true, the motd is escaped using formatting codes like $c, $b, and $i
  125. motd-formatting: true
  126. # relaying using the RELAYMSG command
  127. relaymsg:
  128. # is relaymsg enabled at all?
  129. enabled: true
  130. # which character(s) are reserved for relayed nicks?
  131. separators: "/"
  132. # can channel operators use RELAYMSG in their channels?
  133. # our implementation of RELAYMSG makes it safe for chanops to use without the
  134. # possibility of real users being silently spoofed
  135. available-to-chanops: true
  136. # IPs/CIDRs the PROXY command can be used from
  137. # This should be restricted to localhost (127.0.0.1/8, ::1/128, and unix sockets).
  138. # Unless you have a good reason. you should also add these addresses to the
  139. # connection limits and throttling exemption lists.
  140. proxy-allowed-from:
  141. - localhost
  142. # - "192.168.1.1"
  143. # - "192.168.10.1/24"
  144. # controls the use of the WEBIRC command (by IRC<->web interfaces, bouncers and similar)
  145. webirc:
  146. # one webirc block -- should correspond to one set of gateways
  147. -
  148. # SHA-256 fingerprint of the TLS certificate the gateway must use to connect
  149. # (comment this out to use passwords only)
  150. certfp: "abcdef0123456789abcdef0123456789abcdef0123456789abcdef0123456789"
  151. # password the gateway uses to connect, made with `ergo genpasswd`
  152. password: "$2a$04$abcdef0123456789abcdef0123456789abcdef0123456789abcde"
  153. # IPs/CIDRs that can use this webirc command
  154. # you should also add these addresses to the connection limits and throttling exemption lists
  155. hosts:
  156. - localhost
  157. # - "192.168.1.1"
  158. # - "192.168.10.1/24"
  159. # allow use of the RESUME extension over plaintext connections:
  160. # do not enable this unless the ircd is only accessible over internal networks
  161. allow-plaintext-resume: false
  162. # maximum length of clients' sendQ in bytes
  163. # this should be big enough to hold bursts of channel/direct messages
  164. max-sendq: 96k
  165. # compatibility with legacy clients
  166. compatibility:
  167. # many clients require that the final parameter of certain messages be an
  168. # RFC1459 trailing parameter, i.e., prefixed with :, whether or not this is
  169. # actually required. this forces Ergo to send those parameters
  170. # as trailings. this is recommended unless you're testing clients for conformance;
  171. # defaults to true when unset for that reason.
  172. force-trailing: true
  173. # some clients (ZNC 1.6.x and lower, Pidgin 2.12 and lower) do not
  174. # respond correctly to SASL messages with the server name as a prefix:
  175. # https://github.com/znc/znc/issues/1212
  176. # this works around that bug, allowing them to use SASL.
  177. send-unprefixed-sasl: true
  178. # traditionally, IRC servers will truncate and send messages that are
  179. # too long to be relayed intact. this behavior can be disabled by setting
  180. # allow-truncation to false, in which case Ergo will reject the message
  181. # and return an error to the client. (note that this option defaults to true
  182. # when unset.)
  183. allow-truncation: true
  184. # IP-based DoS protection
  185. ip-limits:
  186. # whether to limit the total number of concurrent connections per IP/CIDR
  187. count: true
  188. # maximum concurrent connections per IP/CIDR
  189. max-concurrent-connections: 16
  190. # whether to restrict the rate of new connections per IP/CIDR
  191. throttle: true
  192. # how long to keep track of connections for
  193. window: 10m
  194. # maximum number of new connections per IP/CIDR within the given duration
  195. max-connections-per-window: 32
  196. # how wide the CIDR should be for IPv4 (a /32 is a fully specified IPv4 address)
  197. cidr-len-ipv4: 32
  198. # how wide the CIDR should be for IPv6 (a /64 is the typical prefix assigned
  199. # by an ISP to an individual customer for their LAN)
  200. cidr-len-ipv6: 64
  201. # IPs/networks which are exempted from connection limits
  202. exempted:
  203. - "localhost"
  204. # - "192.168.1.1"
  205. # - "2001:0db8::/32"
  206. # custom connection limits for certain IPs/networks.
  207. custom-limits:
  208. #"irccloud":
  209. # nets:
  210. # - "192.184.9.108" # highgate.irccloud.com
  211. # - "192.184.9.110" # ealing.irccloud.com
  212. # - "192.184.9.112" # charlton.irccloud.com
  213. # - "192.184.10.118" # brockwell.irccloud.com
  214. # - "192.184.10.9" # tooting.irccloud.com
  215. # - "192.184.8.73" # hathersage.irccloud.com
  216. # - "192.184.8.103" # stonehaven.irccloud.com
  217. # - "5.254.36.57" # tinside.irccloud.com
  218. # - "5.254.36.56/29" # additional ipv4 net
  219. # - "2001:67c:2f08::/48"
  220. # - "2a03:5180:f::/64"
  221. # max-concurrent-connections: 2048
  222. # max-connections-per-window: 2048
  223. # pluggable IP ban mechanism, via subprocess invocation
  224. # this can be used to check new connections against a DNSBL, for example
  225. # see the manual for details on how to write an IP ban checking script
  226. ip-check-script:
  227. enabled: false
  228. command: "/usr/local/bin/check-ip-ban"
  229. # constant list of args to pass to the command; the actual query
  230. # and result are transmitted over stdin/stdout:
  231. args: []
  232. # timeout for process execution, after which we send a SIGTERM:
  233. timeout: 9s
  234. # how long after the SIGTERM before we follow up with a SIGKILL:
  235. kill-timeout: 1s
  236. # how many scripts are allowed to run at once? 0 for no limit:
  237. max-concurrency: 64
  238. # IP cloaking hides users' IP addresses from other users and from channel admins
  239. # (but not from server admins), while still allowing channel admins to ban
  240. # offending IP addresses or networks. In place of hostnames derived from reverse
  241. # DNS, users see fake domain names like pwbs2ui4377257x8.irc. These names are
  242. # generated deterministically from the underlying IP address, but if the underlying
  243. # IP is not already known, it is infeasible to recover it from the cloaked name.
  244. ip-cloaking:
  245. # whether to enable IP cloaking
  246. enabled: false
  247. # whether to use these cloak settings (specifically, `netname` and `num-bits`)
  248. # to produce unique hostnames for always-on clients. you can enable this even if
  249. # you disabled IP cloaking for normal clients above. if this is disabled,
  250. # always-on clients will all have an identical hostname (the server name).
  251. enabled-for-always-on: true
  252. # fake TLD at the end of the hostname, e.g., pwbs2ui4377257x8.irc
  253. # you may want to use your network name here
  254. netname: "irc"
  255. # the cloaked hostname is derived only from the CIDR (most significant bits
  256. # of the IP address), up to a configurable number of bits. this is the
  257. # granularity at which bans will take effect for IPv4. Note that changing
  258. # this value will invalidate any stored bans.
  259. cidr-len-ipv4: 32
  260. # analogous granularity for IPv6
  261. cidr-len-ipv6: 64
  262. # number of bits of hash output to include in the cloaked hostname.
  263. # more bits means less likelihood of distinct IPs colliding,
  264. # at the cost of a longer cloaked hostname. if this value is set to 0,
  265. # all users will receive simply `netname` as their cloaked hostname.
  266. num-bits: 64
  267. # secure-nets identifies IPs and CIDRs which are secure at layer 3,
  268. # for example, because they are on a trusted internal LAN or a VPN.
  269. # plaintext connections from these IPs and CIDRs will be considered
  270. # secure (clients will receive the +Z mode and be allowed to resume
  271. # or reattach to secure connections). note that loopback IPs are always
  272. # considered secure:
  273. secure-nets:
  274. # - "10.0.0.0/8"
  275. # Ergo will write files to disk under certain circumstances, e.g.,
  276. # CPU profiling or data export. by default, these files will be written
  277. # to the working directory. set this to customize:
  278. #output-path: "/home/ergo/out"
  279. # the hostname used by "services", e.g., NickServ, defaults to "localhost",
  280. # e.g., `NickServ!NickServ@localhost`. uncomment this to override:
  281. #override-services-hostname: "example.network"
  282. # in a "closed-loop" system where you control the server and all the clients,
  283. # you may want to increase the maximum (non-tag) length of an IRC line from
  284. # the default value of 512. DO NOT change this on a public server:
  285. # max-line-len: 512
  286. # account options
  287. accounts:
  288. # is account authentication enabled, i.e., can users log into existing accounts?
  289. authentication-enabled: true
  290. # account registration
  291. registration:
  292. # can users register new accounts for themselves? if this is false, operators with
  293. # the `accreg` capability can still create accounts with `/NICKSERV SAREGISTER`
  294. enabled: true
  295. # can users use the REGISTER command to register before fully connecting?
  296. allow-before-connect: true
  297. # global throttle on new account creation
  298. throttling:
  299. enabled: true
  300. # window
  301. duration: 10m
  302. # number of attempts allowed within the window
  303. max-attempts: 30
  304. # this is the bcrypt cost we'll use for account passwords
  305. # (note that 4 is the lowest value allowed by the bcrypt library)
  306. bcrypt-cost: 4
  307. # length of time a user has to verify their account before it can be re-registered
  308. verify-timeout: "32h"
  309. # options for email verification of account registrations
  310. email-verification:
  311. enabled: false
  312. sender: "admin@my.network"
  313. require-tls: true
  314. helo-domain: "my.network" # defaults to server name if unset
  315. # options to enable DKIM signing of outgoing emails (recommended, but
  316. # requires creating a DNS entry for the public key):
  317. # dkim:
  318. # domain: "my.network"
  319. # selector: "20200229"
  320. # key-file: "dkim.pem"
  321. # to use an MTA/smarthost instead of sending email directly:
  322. # mta:
  323. # server: localhost
  324. # port: 25
  325. # username: "admin"
  326. # password: "hunter2"
  327. blacklist-regexes:
  328. # - ".*@mailinator.com"
  329. # throttle account login attempts (to prevent either password guessing, or DoS
  330. # attacks on the server aimed at forcing repeated expensive bcrypt computations)
  331. login-throttling:
  332. enabled: true
  333. # window
  334. duration: 1m
  335. # number of attempts allowed within the window
  336. max-attempts: 3
  337. # some clients (notably Pidgin and Hexchat) offer only a single password field,
  338. # which makes it impossible to specify a separate server password (for the PASS
  339. # command) and SASL password. if this option is set to true, a client that
  340. # successfully authenticates with SASL will not be required to send
  341. # PASS as well, so it can be configured to authenticate with SASL only.
  342. skip-server-password: false
  343. # enable login to accounts via the PASS command, e.g., PASS account:password
  344. # this is useful for compatibility with old clients that don't support SASL
  345. login-via-pass-command: false
  346. # require-sasl controls whether clients are required to have accounts
  347. # (and sign into them using SASL) to connect to the server
  348. require-sasl:
  349. # if this is enabled, all clients must authenticate with SASL while connecting.
  350. # WARNING: for a private server, you MUST set accounts.registration.enabled
  351. # to false as well, in order to prevent non-administrators from registering
  352. # accounts.
  353. enabled: false
  354. # IPs/CIDRs which are exempted from the account requirement
  355. exempted:
  356. - "localhost"
  357. # - '10.10.0.0/16'
  358. # nick-reservation controls how, and whether, nicknames are linked to accounts
  359. nick-reservation:
  360. # is there any enforcement of reserved nicknames?
  361. enabled: true
  362. # how many nicknames, in addition to the account name, can be reserved?
  363. # (note that additional nicks are unusable under force-nick-equals-account
  364. # or if the client is always-on)
  365. additional-nick-limit: 2
  366. # method describes how nickname reservation is handled
  367. # strict: users must already be logged in to their account (via
  368. # SASL, PASS account:password, or /NickServ IDENTIFY)
  369. # in order to use their reserved nickname(s)
  370. # optional: no enforcement by default, but allow users to opt in to
  371. # the enforcement level of their choice
  372. method: optional
  373. # allow users to set their own nickname enforcement status, e.g.,
  374. # to opt out of strict enforcement
  375. allow-custom-enforcement: true
  376. # format for guest nicknames:
  377. # 1. these nicknames cannot be registered or reserved
  378. # 2. if a client is automatically renamed by the server,
  379. # this is the template that will be used (e.g., Guest-nccj6rgmt97cg)
  380. # 3. if enforce-guest-format (see below) is enabled, clients without
  381. # a registered account will have this template applied to their
  382. # nicknames (e.g., 'katie' will become 'Guest-katie')
  383. guest-nickname-format: "Guest-*"
  384. # when enabled, forces users not logged into an account to use
  385. # a nickname matching the guest template. a caveat: this may prevent
  386. # users from choosing nicknames in scripts different from the guest
  387. # nickname format.
  388. force-guest-format: false
  389. # when enabled, forces users logged into an account to use the
  390. # account name as their nickname. when combined with strict nickname
  391. # enforcement, this lets users treat nicknames and account names
  392. # as equivalent for the purpose of ban/invite/exception lists.
  393. force-nick-equals-account: false
  394. # parallel setting to force-nick-equals-account: if true, this forbids
  395. # anonymous users (i.e., users not logged into an account) to change their
  396. # nickname after the initial connection is complete
  397. forbid-anonymous-nick-changes: false
  398. # multiclient controls whether Ergo allows multiple connections to
  399. # attach to the same client/nickname identity; this is part of the
  400. # functionality traditionally provided by a bouncer like ZNC
  401. multiclient:
  402. # when disabled, each connection must use a separate nickname (as is the
  403. # typical behavior of IRC servers). when enabled, a new connection that
  404. # has authenticated with SASL can associate itself with an existing
  405. # client
  406. enabled: true
  407. # if this is disabled, clients have to opt in to bouncer functionality
  408. # using nickserv or the cap system. if it's enabled, they can opt out
  409. # via nickserv
  410. allowed-by-default: false
  411. # whether to allow clients that remain on the server even
  412. # when they have no active connections. The possible values are:
  413. # "disabled", "opt-in", "opt-out", or "mandatory".
  414. always-on: "disabled"
  415. # whether to mark always-on clients away when they have no active connections:
  416. auto-away: "opt-in"
  417. # QUIT always-on clients from the server if they go this long without connecting
  418. # (use 0 or omit for no expiration):
  419. #always-on-expiration: 90d
  420. # vhosts controls the assignment of vhosts (strings displayed in place of the user's
  421. # hostname/IP) by the HostServ service
  422. vhosts:
  423. # are vhosts enabled at all?
  424. enabled: true
  425. # maximum length of a vhost
  426. max-length: 64
  427. # regexp for testing the validity of a vhost
  428. # (make sure any changes you make here are RFC-compliant)
  429. valid-regexp: '^[0-9A-Za-z.\-_/]+$'
  430. # modes that are set by default when a user connects
  431. # if unset, no user modes will be set by default
  432. # +i is invisible (a user's channels are hidden from whois replies)
  433. # see /QUOTE HELP umodes for more user modes
  434. # default-user-modes: +i
  435. # pluggable authentication mechanism, via subprocess invocation
  436. # see the manual for details on how to write an authentication plugin script
  437. auth-script:
  438. enabled: false
  439. command: "/usr/local/bin/authenticate-irc-user"
  440. # constant list of args to pass to the command; the actual authentication
  441. # data is transmitted over stdin/stdout:
  442. args: []
  443. # should we automatically create users if the plugin returns success?
  444. autocreate: true
  445. # timeout for process execution, after which we send a SIGTERM:
  446. timeout: 9s
  447. # how long after the SIGTERM before we follow up with a SIGKILL:
  448. kill-timeout: 1s
  449. # how many scripts are allowed to run at once? 0 for no limit:
  450. max-concurrency: 64
  451. # channel options
  452. channels:
  453. # modes that are set when new channels are created
  454. # +n is no-external-messages and +t is op-only-topic
  455. # see /QUOTE HELP cmodes for more channel modes
  456. default-modes: +nt
  457. # how many channels can a client be in at once?
  458. max-channels-per-client: 100
  459. # if this is true, new channels can only be created by operators with the
  460. # `chanreg` operator capability
  461. operator-only-creation: false
  462. # channel registration - requires an account
  463. registration:
  464. # can users register new channels?
  465. enabled: true
  466. # restrict new channel registrations to operators only?
  467. # (operators can then transfer channels to regular users using /CS TRANSFER)
  468. operator-only: false
  469. # how many channels can each account register?
  470. max-channels-per-account: 15
  471. # as a crude countermeasure against spambots, anonymous connections younger
  472. # than this value will get an empty response to /LIST (a time period of 0 disables)
  473. list-delay: 0s
  474. # INVITE to an invite-only channel expires after this amount of time
  475. # (0 or omit for no expiration):
  476. invite-expiration: 24h
  477. # operator classes
  478. oper-classes:
  479. # chat moderator: can ban/unban users from the server, join channels,
  480. # fix mode issues and sort out vhosts.
  481. "chat-moderator":
  482. # title shown in WHOIS
  483. title: Chat Moderator
  484. # capability names
  485. capabilities:
  486. - "kill"
  487. - "ban"
  488. - "nofakelag"
  489. - "roleplay"
  490. - "relaymsg"
  491. - "vhosts"
  492. - "sajoin"
  493. - "samode"
  494. - "snomasks"
  495. # server admin: has full control of the ircd, including nickname and
  496. # channel registrations
  497. "server-admin":
  498. # title shown in WHOIS
  499. title: Server Admin
  500. # oper class this extends from
  501. extends: "chat-moderator"
  502. # capability names
  503. capabilities:
  504. - "rehash"
  505. - "accreg"
  506. - "chanreg"
  507. - "history"
  508. - "defcon"
  509. - "massmessage"
  510. # ircd operators
  511. opers:
  512. # default operator named 'admin'; log in with /OPER admin <password>
  513. admin:
  514. # which capabilities this oper has access to
  515. class: "server-admin"
  516. # custom whois line
  517. whois-line: is the server administrator
  518. # custom hostname
  519. vhost: "staff"
  520. # normally, operator status is visible to unprivileged users in WHO and WHOIS
  521. # responses. this can be disabled with 'hidden'. ('hidden' also causes the
  522. # 'vhost' line above to be ignored.)
  523. hidden: false
  524. # modes are modes to auto-set upon opering-up. uncomment this to automatically
  525. # enable snomasks ("server notification masks" that alert you to server events;
  526. # see `/quote help snomasks` while opered-up for more information):
  527. #modes: +is acjknoqtuxv
  528. # operators can be authenticated either by password (with the /OPER command),
  529. # or by certificate fingerprint, or both. if a password hash is set, then a
  530. # password is required to oper up (e.g., /OPER dan mypassword). to generate
  531. # the hash, use `ergo genpasswd`.
  532. password: "$2a$04$0123456789abcdef0123456789abcdef0123456789abcdef01234"
  533. # if a SHA-256 certificate fingerprint is configured here, then it will be
  534. # required to /OPER. if you comment out the password hash above, then you can
  535. # /OPER without a password.
  536. #certfp: "abcdef0123456789abcdef0123456789abcdef0123456789abcdef0123456789"
  537. # if 'auto' is set (and no password hash is set), operator permissions will be
  538. # granted automatically as soon as you connect with the right fingerprint.
  539. #auto: true
  540. # example of a moderator named 'alice'
  541. # (log in with /OPER alice <password>):
  542. #alice:
  543. # class: "chat-moderator"
  544. # whois-line: "can help with moderation issues!"
  545. # password: "$2a$04$0123456789abcdef0123456789abcdef0123456789abcdef01234"
  546. # logging, takes inspiration from Insp
  547. logging:
  548. -
  549. # how to log these messages
  550. #
  551. # file log to a file
  552. # stdout log to stdout
  553. # stderr log to stderr
  554. # (you can specify multiple methods, e.g., to log to both stderr and a file)
  555. method: stderr
  556. # filename to log to, if file method is selected
  557. # filename: ircd.log
  558. # type(s) of logs to keep here. you can use - to exclude those types
  559. #
  560. # exclusions take precedent over inclusions, so if you exclude a type it will NEVER
  561. # be logged, even if you explicitly include it
  562. #
  563. # useful types include:
  564. # * everything (usually used with exclusing some types below)
  565. # server server startup, rehash, and shutdown events
  566. # accounts account registration and authentication
  567. # channels channel creation and operations
  568. # opers oper actions, authentication, etc
  569. # services actions related to NickServ, ChanServ, etc.
  570. # internal unexpected runtime behavior, including potential bugs
  571. # userinput raw lines sent by users
  572. # useroutput raw lines sent to users
  573. type: "* -userinput -useroutput"
  574. # one of: debug info warn error
  575. level: info
  576. #-
  577. # # example of a file log that avoids logging IP addresses
  578. # method: file
  579. # filename: ircd.log
  580. # type: "* -userinput -useroutput -connect-ip"
  581. # level: debug
  582. # debug options
  583. debug:
  584. # when enabled, Ergo will attempt to recover from certain kinds of
  585. # client-triggered runtime errors that would normally crash the server.
  586. # this makes the server more resilient to DoS, but could result in incorrect
  587. # behavior. deployments that would prefer to "start from scratch", e.g., by
  588. # letting the process crash and auto-restarting it with systemd, can set
  589. # this to false.
  590. recover-from-errors: true
  591. # optionally expose a pprof http endpoint: https://golang.org/pkg/net/http/pprof/
  592. # it is strongly recommended that you don't expose this on a public interface;
  593. # if you need to access it remotely, you can use an SSH tunnel.
  594. # set to `null`, "", leave blank, or omit to disable
  595. # pprof-listener: "localhost:6060"
  596. # datastore configuration
  597. datastore:
  598. # path to the datastore
  599. path: ircd.db
  600. # if the database schema requires an upgrade, `autoupgrade` will attempt to
  601. # perform it automatically on startup. the database will be backed
  602. # up, and if the upgrade fails, the original database will be restored.
  603. autoupgrade: true
  604. # connection information for MySQL (currently only used for persistent history):
  605. mysql:
  606. enabled: false
  607. host: "localhost"
  608. port: 3306
  609. # if socket-path is set, it will be used instead of host:port
  610. #socket-path: "/var/run/mysqld/mysqld.sock"
  611. user: "ergo"
  612. password: "hunter2"
  613. history-database: "ergo_history"
  614. timeout: 3s
  615. max-conns: 4
  616. # this may be necessary to prevent middleware from closing your connections:
  617. #conn-max-lifetime: 180s
  618. # languages config
  619. languages:
  620. # whether to load languages
  621. enabled: true
  622. # default language to use for new clients
  623. # 'en' is the default English language in the code
  624. default: en
  625. # which directory contains our language files
  626. path: languages
  627. # limits - these need to be the same across the network
  628. limits:
  629. # nicklen is the max nick length allowed
  630. nicklen: 32
  631. # identlen is the max ident length allowed
  632. identlen: 20
  633. # channellen is the max channel length allowed
  634. channellen: 64
  635. # awaylen is the maximum length of an away message
  636. awaylen: 390
  637. # kicklen is the maximum length of a kick message
  638. kicklen: 390
  639. # topiclen is the maximum length of a channel topic
  640. topiclen: 390
  641. # maximum number of monitor entries a client can have
  642. monitor-entries: 100
  643. # whowas entries to store
  644. whowas-entries: 100
  645. # maximum length of channel lists (beI modes)
  646. chan-list-modes: 60
  647. # maximum number of messages to accept during registration (prevents
  648. # DoS / resource exhaustion attacks):
  649. registration-messages: 1024
  650. # message length limits for the new multiline cap
  651. multiline:
  652. max-bytes: 4096 # 0 means disabled
  653. max-lines: 100 # 0 means no limit
  654. # fakelag: prevents clients from spamming commands too rapidly
  655. fakelag:
  656. # whether to enforce fakelag
  657. enabled: true
  658. # time unit for counting command rates
  659. window: 1s
  660. # clients can send this many commands without fakelag being imposed
  661. burst-limit: 5
  662. # once clients have exceeded their burst allowance, they can send only
  663. # this many commands per `window`:
  664. messages-per-window: 2
  665. # client status resets to the default state if they go this long without
  666. # sending any commands:
  667. cooldown: 2s
  668. # the roleplay commands are semi-standardized extensions to IRC that allow
  669. # sending and receiving messages from pseudo-nicknames. this can be used either
  670. # for actual roleplaying, or for bridging IRC with other protocols.
  671. roleplay:
  672. # are roleplay commands enabled at all? (channels and clients still have to
  673. # opt in individually with the +E mode)
  674. enabled: false
  675. # require the "roleplay" oper capability to send roleplay messages?
  676. require-oper: false
  677. # require channel operator permissions to send roleplay messages?
  678. require-chanops: false
  679. # add the real nickname, in parentheses, to the end of every roleplay message?
  680. add-suffix: true
  681. # external services can integrate with the ircd using JSON Web Tokens (https://jwt.io).
  682. # in effect, the server can sign a token attesting that the client is present on
  683. # the server, is a member of a particular channel, etc.
  684. extjwt:
  685. # # default service config (for `EXTJWT #channel`).
  686. # # expiration time for the token:
  687. # expiration: 45s
  688. # # you can configure tokens to be signed either with HMAC and a symmetric secret:
  689. # secret: "65PHvk0K1_sM-raTsCEhatVkER_QD8a0zVV8gG2EWcI"
  690. # # or with an RSA private key:
  691. # #rsa-private-key-file: "extjwt.pem"
  692. # # named services (for `EXTJWT #channel service_name`):
  693. # services:
  694. # "jitsi":
  695. # expiration: 30s
  696. # secret: "qmamLKDuOzIzlO8XqsGGewei_At11lewh6jtKfSTbkg"
  697. # history message storage: this is used by CHATHISTORY, HISTORY, znc.in/playback,
  698. # various autoreplay features, and the resume extension
  699. history:
  700. # should we store messages for later playback?
  701. # by default, messages are stored in RAM only; they do not persist
  702. # across server restarts. however, you may want to understand how message
  703. # history interacts with the GDPR and/or any data privacy laws that apply
  704. # in your country and the countries of your users.
  705. enabled: true
  706. # how many channel-specific events (messages, joins, parts) should be tracked per channel?
  707. channel-length: 2048
  708. # how many direct messages and notices should be tracked per user?
  709. client-length: 256
  710. # how long should we try to preserve messages?
  711. # if `autoresize-window` is 0, the in-memory message buffers are preallocated to
  712. # their maximum length. if it is nonzero, the buffers are initially small and
  713. # are dynamically expanded up to the maximum length. if the buffer is full
  714. # and the oldest message is older than `autoresize-window`, then it will overwrite
  715. # the oldest message rather than resize; otherwise, it will expand if possible.
  716. autoresize-window: 3d
  717. # number of messages to automatically play back on channel join (0 to disable):
  718. autoreplay-on-join: 0
  719. # maximum number of CHATHISTORY messages that can be
  720. # requested at once (0 disables support for CHATHISTORY)
  721. chathistory-maxmessages: 100
  722. # maximum number of messages that can be replayed at once during znc emulation
  723. # (znc.in/playback, or automatic replay on initial reattach to a persistent client):
  724. znc-maxmessages: 2048
  725. # options to delete old messages, or prevent them from being retrieved
  726. restrictions:
  727. # if this is set, messages older than this cannot be retrieved by anyone
  728. # (and will eventually be deleted from persistent storage, if that's enabled)
  729. expire-time: 1w
  730. # this restricts access to channel history (it can be overridden by channel
  731. # owners). options are: 'none' (no restrictions), 'registration-time'
  732. # (logged-in users cannot retrieve messages older than their account
  733. # registration date, and anonymous users cannot retrieve messages older than
  734. # their sign-on time, modulo the grace-period described below), and
  735. # 'join-time' (users cannot retrieve messages older than the time they
  736. # joined the channel, so only always-on clients can view history).
  737. query-cutoff: 'none'
  738. # if query-cutoff is set to 'registration-time', this allows retrieval
  739. # of messages that are up to 'grace-period' older than the above cutoff.
  740. # if you use 'registration-time', this is recommended to allow logged-out
  741. # users to query history after disconnections.
  742. grace-period: 1h
  743. # options to store history messages in a persistent database (currently only MySQL).
  744. # in order to enable any of this functionality, you must configure a MySQL server
  745. # in the `datastore.mysql` section.
  746. persistent:
  747. enabled: false
  748. # store unregistered channel messages in the persistent database?
  749. unregistered-channels: false
  750. # for a registered channel, the channel owner can potentially customize
  751. # the history storage setting. as the server operator, your options are
  752. # 'disabled' (no persistent storage, regardless of per-channel setting),
  753. # 'opt-in', 'opt-out', and 'mandatory' (force persistent storage, ignoring
  754. # per-channel setting):
  755. registered-channels: "opt-out"
  756. # direct messages are only stored in the database for logged-in clients;
  757. # you can control how they are stored here (same options as above).
  758. # if you enable this, strict nickname reservation is strongly recommended
  759. # as well.
  760. direct-messages: "opt-out"
  761. # options to control how messages are stored and deleted:
  762. retention:
  763. # allow users to delete their own messages from history?
  764. allow-individual-delete: false
  765. # if persistent history is enabled, create additional index tables,
  766. # allowing deletion of JSON export of an account's messages. this
  767. # may be needed for compliance with data privacy regulations.
  768. enable-account-indexing: false
  769. # options to control storage of TAGMSG
  770. tagmsg-storage:
  771. # by default, should TAGMSG be stored?
  772. default: false
  773. # if `default` is false, store TAGMSG containing any of these tags:
  774. whitelist:
  775. - "+draft/react"
  776. - "react"
  777. # if `default` is true, don't store TAGMSG containing any of these tags:
  778. #blacklist:
  779. # - "+draft/typing"
  780. # - "typing"
  781. # whether to allow customization of the config at runtime using environment variables,
  782. # e.g., ERGO__SERVER__MAX_SENDQ=128k. see the manual for more details.
  783. allow-environment-overrides: true