Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

conventional.yaml 32KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803
  1. # This is the "conventional" or "mainstream" config file for Oragono.
  2. # It tries to replicate the behavior of other ircds, at the cost of not
  3. # taking full advantage of Oragono'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: OragonoTest
  9. # server configuration
  10. server:
  11. # server name
  12. name: oragono.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 oragono.yaml):
  19. ":6667":
  20. # The standard SSL/TLS port for IRC is 6697. This will listen on all interfaces:
  21. ":6697":
  22. tls:
  23. key: tls.key
  24. cert: tls.crt
  25. # 'proxy' should typically be false. It's only for Kubernetes-style load
  26. # balancing that does not terminate TLS, but sends an initial PROXY line
  27. # in plaintext.
  28. proxy: false
  29. # Example of a Unix domain socket for proxying:
  30. # "/tmp/oragono_sock":
  31. # Example of a Tor listener: any connection that comes in on this listener will
  32. # be considered a Tor connection. It is strongly recommended that this listener
  33. # *not* be on a public interface --- it should be on 127.0.0.0/8 or unix domain:
  34. # "/hidden_service_sockets/oragono_tor_sock":
  35. # tor: true
  36. # sets the permissions for Unix listen sockets. on a typical Linux system,
  37. # the default is 0775 or 0755, which prevents other users/groups from connecting
  38. # to the socket. With 0777, it behaves like a normal TCP socket
  39. # where anyone can connect.
  40. unix-bind-mode: 0777
  41. # configure the behavior of Tor listeners (ignored if you didn't enable any):
  42. tor-listeners:
  43. # if this is true, connections from Tor must authenticate with SASL
  44. require-sasl: false
  45. # what hostname should be displayed for Tor connections?
  46. vhost: "tor-network.onion"
  47. # allow at most this many connections at once (0 for no limit):
  48. max-connections: 64
  49. # connection throttling (limit how many connection attempts are allowed at once):
  50. throttle-duration: 10m
  51. # set to 0 to disable throttling:
  52. max-connections-per-duration: 64
  53. # strict transport security, to get clients to automagically use TLS
  54. sts:
  55. # whether to advertise STS
  56. #
  57. # to stop advertising STS, leave this enabled and set 'duration' below to "0". this will
  58. # advertise to connecting users that the STS policy they have saved is no longer valid
  59. enabled: false
  60. # how long clients should be forced to use TLS for.
  61. # setting this to a too-long time will mean bad things if you later remove your TLS.
  62. # the default duration below is 1 month, 2 days and 5 minutes.
  63. duration: 1mo2d5m
  64. # tls port - you should be listening on this port above
  65. port: 6697
  66. # should clients include this STS policy when they ship their inbuilt preload lists?
  67. preload: false
  68. # casemapping controls what kinds of strings are permitted as identifiers (nicknames,
  69. # channel names, account names, etc.), and how they are normalized for case.
  70. # with the recommended default of 'precis', utf-8 identifiers that are "sane"
  71. # (according to RFC 8265) are allowed, and the server additionally tries to protect
  72. # against confusable characters ("homoglyph attacks").
  73. # the other options are 'ascii' (traditional ASCII-only identifiers), and 'permissive',
  74. # which allows identifiers to contain unusual characters like emoji, but makes users
  75. # vulnerable to homoglyph attacks. unless you're really confident in your decision,
  76. # we recommend leaving this value at its default (changing it once the network is
  77. # already up and running is problematic).
  78. casemapping: "precis"
  79. # whether to look up user hostnames with reverse DNS
  80. # (to suppress this for privacy purposes, use the ip-cloaking options below)
  81. lookup-hostnames: true
  82. # whether to confirm hostname lookups using "forward-confirmed reverse DNS", i.e., for
  83. # any hostname returned from reverse DNS, resolve it back to an IP address and reject it
  84. # unless it matches the connecting IP
  85. forward-confirm-hostnames: true
  86. # use ident protocol to get usernames
  87. check-ident: true
  88. # password to login to the server
  89. # generated using "oragono genpasswd"
  90. #password: ""
  91. # motd filename
  92. # if you change the motd, you should move it to ircd.motd
  93. motd: oragono.motd
  94. # motd formatting codes
  95. # if this is true, the motd is escaped using formatting codes like $c, $b, and $i
  96. motd-formatting: true
  97. # addresses/CIDRs the PROXY command can be used from
  98. # this should be restricted to 127.0.0.1/8 and ::1/128 (unless you have a good reason)
  99. # you should also add these addresses to the connection limits and throttling exemption lists
  100. proxy-allowed-from:
  101. # - localhost
  102. # - "192.168.1.1"
  103. # - "192.168.10.1/24"
  104. # controls the use of the WEBIRC command (by IRC<->web interfaces, bouncers and similar)
  105. webirc:
  106. # one webirc block -- should correspond to one set of gateways
  107. -
  108. # SHA-256 fingerprint of the TLS certificate the gateway must use to connect
  109. # (comment this out to use passwords only)
  110. fingerprint: "abcdef0123456789abcdef0123456789abcdef0123456789abcdef0123456789"
  111. # password the gateway uses to connect, made with oragono genpasswd
  112. password: "$2a$04$sLEFDpIOyUp55e6gTMKbOeroT6tMXTjPFvA0eGvwvImVR9pkwv7ee"
  113. # addresses/CIDRs that can use this webirc command
  114. # you should also add these addresses to the connection limits and throttling exemption lists
  115. hosts:
  116. # - localhost
  117. # - "192.168.1.1"
  118. # - "192.168.10.1/24"
  119. # allow use of the RESUME extension over plaintext connections:
  120. # do not enable this unless the ircd is only accessible over internal networks
  121. allow-plaintext-resume: false
  122. # maximum length of clients' sendQ in bytes
  123. # this should be big enough to hold bursts of channel/direct messages
  124. max-sendq: 96k
  125. # compatibility with legacy clients
  126. compatibility:
  127. # many clients require that the final parameter of certain messages be an
  128. # RFC1459 trailing parameter, i.e., prefixed with :, whether or not this is
  129. # actually required. this forces Oragono to send those parameters
  130. # as trailings. this is recommended unless you're testing clients for conformance;
  131. # defaults to true when unset for that reason.
  132. force-trailing: true
  133. # some clients (ZNC 1.6.x and lower, Pidgin 2.12 and lower) do not
  134. # respond correctly to SASL messages with the server name as a prefix:
  135. # https://github.com/znc/znc/issues/1212
  136. # this works around that bug, allowing them to use SASL.
  137. send-unprefixed-sasl: true
  138. # IP-based DoS protection
  139. ip-limits:
  140. # whether to limit the total number of concurrent connections per IP/CIDR
  141. count: true
  142. # maximum concurrent connections per IP/CIDR
  143. max-concurrent-connections: 16
  144. # whether to restrict the rate of new connections per IP/CIDR
  145. throttle: true
  146. # how long to keep track of connections for
  147. window: 10m
  148. # maximum number of new connections per IP/CIDR within the given duration
  149. max-connections-per-window: 32
  150. # how long to ban offenders for. after banning them, the number of connections is
  151. # reset, which lets you use /UNDLINE to unban people
  152. throttle-ban-duration: 10m
  153. # how wide the CIDR should be for IPv4 (a /32 is a fully specified IPv4 address)
  154. cidr-len-ipv4: 32
  155. # how wide the CIDR should be for IPv6 (a /64 is the typical prefix assigned
  156. # by an ISP to an individual customer for their LAN)
  157. cidr-len-ipv6: 64
  158. # IPs/networks which are exempted from connection limits
  159. exempted:
  160. - "localhost"
  161. # - "192.168.1.1"
  162. # - "2001:0db8::/32"
  163. # custom connection limits for certain IPs/networks. note that CIDR
  164. # widths defined here override the default CIDR width --- the limit
  165. # will apply to the entire CIDR no matter how large or small it is
  166. custom-limits:
  167. # "8.8.0.0/16":
  168. # max-concurrent-connections: 128
  169. # max-connections-per-window: 1024
  170. # IP cloaking hides users' IP addresses from other users and from channel admins
  171. # (but not from server admins), while still allowing channel admins to ban
  172. # offending IP addresses or networks. In place of hostnames derived from reverse
  173. # DNS, users see fake domain names like pwbs2ui4377257x8.oragono. These names are
  174. # generated deterministically from the underlying IP address, but if the underlying
  175. # IP is not already known, it is infeasible to recover it from the cloaked name.
  176. ip-cloaking:
  177. # whether to enable IP cloaking
  178. enabled: false
  179. # fake TLD at the end of the hostname, e.g., pwbs2ui4377257x8.oragono
  180. netname: "oragono"
  181. # secret key to prevent dictionary attacks against cloaked IPs
  182. # any high-entropy secret is valid for this purpose:
  183. # you MUST generate a new one for your installation.
  184. # suggestion: use the output of `oragono mksecret`
  185. # note that rotating this key will invalidate all existing ban masks.
  186. secret: "siaELnk6Kaeo65K3RCrwJjlWaZ-Bt3WuZ2L8MXLbNb4"
  187. # name of an environment variable to pull the secret from, for use with
  188. # k8s secret distribution:
  189. # secret-environment-variable: "ORAGONO_CLOAKING_SECRET"
  190. # the cloaked hostname is derived only from the CIDR (most significant bits
  191. # of the IP address), up to a configurable number of bits. this is the
  192. # granularity at which bans will take effect for IPv4. Note that changing
  193. # this value will invalidate any stored bans.
  194. cidr-len-ipv4: 32
  195. # analogous granularity for IPv6
  196. cidr-len-ipv6: 64
  197. # number of bits of hash output to include in the cloaked hostname.
  198. # more bits means less likelihood of distinct IPs colliding,
  199. # at the cost of a longer cloaked hostname. if this value is set to 0,
  200. # all users will receive simply `netname` as their cloaked hostname.
  201. num-bits: 64
  202. # secure-nets identifies IPs and CIDRs which are secure at layer 3,
  203. # for example, because they are on a trusted internal LAN or a VPN.
  204. # plaintext connections from these IPs and CIDRs will be considered
  205. # secure (clients will receive the +Z mode and be allowed to resume
  206. # or reattach to secure connections). note that loopback IPs are always
  207. # considered secure:
  208. secure-nets:
  209. # - "10.0.0.0/8"
  210. # account options
  211. accounts:
  212. # is account authentication enabled, i.e., can users log into existing accounts?
  213. authentication-enabled: true
  214. # account registration
  215. registration:
  216. # can users register new accounts for themselves? if this is false, operators with
  217. # the `accreg` capability can still create accounts with `/NICKSERV SAREGISTER`
  218. enabled: true
  219. # global throttle on new account creation
  220. throttling:
  221. enabled: true
  222. # window
  223. duration: 10m
  224. # number of attempts allowed within the window
  225. max-attempts: 30
  226. # this is the bcrypt cost we'll use for account passwords
  227. bcrypt-cost: 9
  228. # length of time a user has to verify their account before it can be re-registered
  229. verify-timeout: "32h"
  230. # callbacks to allow
  231. enabled-callbacks:
  232. - none # no verification needed, will instantly register successfully
  233. # example configuration for sending verification emails
  234. # callbacks:
  235. # mailto:
  236. # sender: "admin@my.network"
  237. # require-tls: true
  238. # helo-domain: "my.network" # defaults to server name if unset
  239. # dkim:
  240. # domain: "my.network"
  241. # selector: "20200229"
  242. # key-file: "dkim.pem"
  243. # # to use an MTA/smarthost instead of sending email directly:
  244. # # mta:
  245. # # server: localhost
  246. # # port: 25
  247. # # username: "admin"
  248. # # password: "hunter2"
  249. # blacklist-regexes:
  250. # # - ".*@mailinator.com"
  251. # throttle account login attempts (to prevent either password guessing, or DoS
  252. # attacks on the server aimed at forcing repeated expensive bcrypt computations)
  253. login-throttling:
  254. enabled: true
  255. # window
  256. duration: 1m
  257. # number of attempts allowed within the window
  258. max-attempts: 3
  259. # some clients (notably Pidgin and Hexchat) offer only a single password field,
  260. # which makes it impossible to specify a separate server password (for the PASS
  261. # command) and SASL password. if this option is set to true, a client that
  262. # successfully authenticates with SASL will not be required to send
  263. # PASS as well, so it can be configured to authenticate with SASL only.
  264. skip-server-password: false
  265. # require-sasl controls whether clients are required to have accounts
  266. # (and sign into them using SASL) to connect to the server
  267. require-sasl:
  268. # if this is enabled, all clients must authenticate with SASL while connecting
  269. enabled: false
  270. # IPs/CIDRs which are exempted from the account requirement
  271. exempted:
  272. - "localhost"
  273. # - '10.10.0.0/16'
  274. # nick-reservation controls how, and whether, nicknames are linked to accounts
  275. nick-reservation:
  276. # is there any enforcement of reserved nicknames?
  277. enabled: true
  278. # how many nicknames, in addition to the account name, can be reserved?
  279. additional-nick-limit: 2
  280. # method describes how nickname reservation is handled
  281. # timeout: let the user change to the registered nickname, give them X seconds
  282. # to login and then rename them if they haven't done so
  283. # strict: don't let the user change to the registered nickname unless they're
  284. # already logged-in using SASL or NickServ
  285. # optional: no enforcement by default, but allow users to opt in to
  286. # the enforcement level of their choice
  287. #
  288. # 'optional' matches the behavior of other NickServs, but 'strict' is
  289. # preferable if all your users can enable SASL.
  290. method: optional
  291. # allow users to set their own nickname enforcement status, e.g.,
  292. # to opt out of strict enforcement
  293. allow-custom-enforcement: true
  294. # rename-timeout - this is how long users have 'til they're renamed
  295. rename-timeout: 30s
  296. # format for guest nicknames:
  297. # 1. these nicknames cannot be registered or reserved
  298. # 2. if a client is automatically renamed by the server,
  299. # this is the template that will be used (e.g., Guest-nccj6rgmt97cg)
  300. # 3. if enforce-guest-format (see below) is enabled, clients without
  301. # a registered account will have this template applied to their
  302. # nicknames (e.g., 'katie' will become 'Guest-katie')
  303. guest-nickname-format: "Guest-*"
  304. # when enabled, forces users not logged into an account to use
  305. # a nickname matching the guest template. a caveat: this may prevent
  306. # users from choosing nicknames in scripts different from the guest
  307. # nickname format.
  308. force-guest-format: false
  309. # when enabled, forces users logged into an account to use the
  310. # account name as their nickname. when combined with strict nickname
  311. # enforcement, this lets users treat nicknames and account names
  312. # as equivalent for the purpose of ban/invite/exception lists.
  313. force-nick-equals-account: false
  314. # multiclient controls whether oragono allows multiple connections to
  315. # attach to the same client/nickname identity; this is part of the
  316. # functionality traditionally provided by a bouncer like ZNC
  317. multiclient:
  318. # when disabled, each connection must use a separate nickname (as is the
  319. # typical behavior of IRC servers). when enabled, a new connection that
  320. # has authenticated with SASL can associate itself with an existing
  321. # client
  322. enabled: true
  323. # if this is disabled, clients have to opt in to bouncer functionality
  324. # using nickserv or the cap system. if it's enabled, they can opt out
  325. # via nickserv
  326. allowed-by-default: false
  327. # whether to allow clients that remain on the server even
  328. # when they have no active connections. The possible values are:
  329. # "disabled", "opt-in", "opt-out", or "mandatory".
  330. always-on: "disabled"
  331. # vhosts controls the assignment of vhosts (strings displayed in place of the user's
  332. # hostname/IP) by the HostServ service
  333. vhosts:
  334. # are vhosts enabled at all?
  335. enabled: true
  336. # maximum length of a vhost
  337. max-length: 64
  338. # regexp for testing the validity of a vhost
  339. # (make sure any changes you make here are RFC-compliant)
  340. valid-regexp: '^[0-9A-Za-z.\-_/]+$'
  341. # options controlling users requesting vhosts:
  342. user-requests:
  343. # can users request vhosts at all? if this is false, operators with the
  344. # 'vhosts' capability can still assign vhosts manually
  345. enabled: false
  346. # if uncommented, all new vhost requests will be dumped into the given
  347. # channel, so opers can review them as they are sent in. ensure that you
  348. # have registered and restricted the channel appropriately before you
  349. # uncomment this.
  350. #channel: "#vhosts"
  351. # after a user's vhost has been approved or rejected, they need to wait
  352. # this long (starting from the time of their original request)
  353. # before they can request a new one.
  354. cooldown: 168h
  355. # vhosts that users can take without approval, using `/HS TAKE`
  356. offer-list:
  357. #- "oragono.test"
  358. # support for deferring password checking to an external LDAP server
  359. # you should probably ignore this section! consult the grafana docs for details:
  360. # https://grafana.com/docs/grafana/latest/auth/ldap/
  361. # you will probably want to set require-sasl and disable accounts.registration.enabled
  362. # ldap:
  363. # enabled: true
  364. # # should we automatically create users if their LDAP login succeeds?
  365. # autocreate: true
  366. # # example configuration that works with Forum Systems's testing server:
  367. # # https://www.forumsys.com/tutorials/integration-how-to/ldap/online-ldap-test-server/
  368. # host: "ldap.forumsys.com"
  369. # port: 389
  370. # timeout: 30s
  371. # # example "single-bind" configuration, where we bind directly to the user's entry:
  372. # bind-dn: "uid=%s,dc=example,dc=com"
  373. # # example "admin bind" configuration, where we bind to an initial admin user,
  374. # # then search for the user's entry with a search filter:
  375. # #search-base-dns:
  376. # # - "dc=example,dc=com"
  377. # #bind-dn: "cn=read-only-admin,dc=example,dc=com"
  378. # #bind-password: "password"
  379. # #search-filter: "(uid=%s)"
  380. # # example of requiring that users be in a particular group
  381. # # (note that this is an OR over the listed groups, not an AND):
  382. # #require-groups:
  383. # # - "ou=mathematicians,dc=example,dc=com"
  384. # #group-search-filter-user-attribute: "dn"
  385. # #group-search-filter: "(uniqueMember=%s)"
  386. # #group-search-base-dns:
  387. # # - "dc=example,dc=com"
  388. # # example of group membership testing via user attributes, as in AD
  389. # # or with OpenLDAP's "memberOf overlay" (overrides group-search-filter):
  390. # attributes:
  391. # member-of: "memberOf"
  392. # channel options
  393. channels:
  394. # modes that are set when new channels are created
  395. # +n is no-external-messages and +t is op-only-topic
  396. # see /QUOTE HELP cmodes for more channel modes
  397. default-modes: +nt
  398. # how many channels can a client be in at once?
  399. max-channels-per-client: 100
  400. # if this is true, new channels can only be created by operators with the
  401. # `chanreg` operator capability
  402. operator-only-creation: false
  403. # channel registration - requires an account
  404. registration:
  405. # can users register new channels?
  406. enabled: true
  407. # restrict new channel registrations to operators only?
  408. # (operators can then transfer channels to regular users using /CS TRANSFER)
  409. operator-only: false
  410. # how many channels can each account register?
  411. max-channels-per-account: 15
  412. # operator classes
  413. oper-classes:
  414. # local operator
  415. "local-oper":
  416. # title shown in WHOIS
  417. title: Local Operator
  418. # capability names
  419. capabilities:
  420. - "local_kill"
  421. - "local_ban"
  422. - "local_unban"
  423. - "nofakelag"
  424. - "roleplay"
  425. # network operator
  426. "network-oper":
  427. # title shown in WHOIS
  428. title: Network Operator
  429. # oper class this extends from
  430. extends: "local-oper"
  431. # capability names
  432. capabilities:
  433. - "remote_kill"
  434. - "remote_ban"
  435. - "remote_unban"
  436. # server admin
  437. "server-admin":
  438. # title shown in WHOIS
  439. title: Server Admin
  440. # oper class this extends from
  441. extends: "local-oper"
  442. # capability names
  443. capabilities:
  444. - "rehash"
  445. - "die"
  446. - "accreg"
  447. - "sajoin"
  448. - "samode"
  449. - "vhosts"
  450. - "chanreg"
  451. # ircd operators
  452. opers:
  453. # operator named 'admin'; log in with /OPER admin [password]
  454. admin:
  455. # which capabilities this oper has access to
  456. class: "server-admin"
  457. # custom whois line
  458. whois-line: is a cool dude
  459. # custom hostname
  460. vhost: "n"
  461. # modes are the modes to auto-set upon opering-up
  462. modes: +is acjknoqtuxv
  463. # operators can be authenticated either by password (with the /OPER command),
  464. # or by certificate fingerprint, or both. if a password hash is set, then a
  465. # password is required to oper up (e.g., /OPER dan mypassword). to generate
  466. # the hash, use `oragono genpasswd`.
  467. password: "$2a$04$LiytCxaY0lI.guDj2pBN4eLRD5cdM2OLDwqmGAgB6M2OPirbF5Jcu"
  468. # if a SHA-256 certificate fingerprint is configured here, then it will be
  469. # required to /OPER. if you comment out the password hash above, then you can
  470. # /OPER without a password.
  471. #fingerprint: "abcdef0123456789abcdef0123456789abcdef0123456789abcdef0123456789"
  472. # if 'auto' is set (and no password hash is set), operator permissions will be
  473. # granted automatically as soon as you connect with the right fingerprint.
  474. #auto: true
  475. # logging, takes inspiration from Insp
  476. logging:
  477. -
  478. # how to log these messages
  479. #
  480. # file log to a file
  481. # stdout log to stdout
  482. # stderr log to stderr
  483. # (you can specify multiple methods, e.g., to log to both stderr and a file)
  484. method: stderr
  485. # filename to log to, if file method is selected
  486. # filename: ircd.log
  487. # type(s) of logs to keep here. you can use - to exclude those types
  488. #
  489. # exclusions take precedent over inclusions, so if you exclude a type it will NEVER
  490. # be logged, even if you explicitly include it
  491. #
  492. # useful types include:
  493. # * everything (usually used with exclusing some types below)
  494. # server server startup, rehash, and shutdown events
  495. # accounts account registration and authentication
  496. # channels channel creation and operations
  497. # commands command calling and operations
  498. # opers oper actions, authentication, etc
  499. # services actions related to NickServ, ChanServ, etc.
  500. # internal unexpected runtime behavior, including potential bugs
  501. # userinput raw lines sent by users
  502. # useroutput raw lines sent to users
  503. type: "* -userinput -useroutput"
  504. # one of: debug info warn error
  505. level: info
  506. #-
  507. # # example of a file log that avoids logging IP addresses
  508. # method: file
  509. # filename: ircd.log
  510. # type: "* -userinput -useroutput -localconnect -localconnect-ip"
  511. # level: debug
  512. # debug options
  513. debug:
  514. # when enabled, oragono will attempt to recover from certain kinds of
  515. # client-triggered runtime errors that would normally crash the server.
  516. # this makes the server more resilient to DoS, but could result in incorrect
  517. # behavior. deployments that would prefer to "start from scratch", e.g., by
  518. # letting the process crash and auto-restarting it with systemd, can set
  519. # this to false.
  520. recover-from-errors: true
  521. # optionally expose a pprof http endpoint: https://golang.org/pkg/net/http/pprof/
  522. # it is strongly recommended that you don't expose this on a public interface;
  523. # if you need to access it remotely, you can use an SSH tunnel.
  524. # set to `null`, "", leave blank, or omit to disable
  525. # pprof-listener: "localhost:6060"
  526. # datastore configuration
  527. datastore:
  528. # path to the datastore
  529. path: ircd.db
  530. # if the database schema requires an upgrade, `autoupgrade` will attempt to
  531. # perform it automatically on startup. the database will be backed
  532. # up, and if the upgrade fails, the original database will be restored.
  533. autoupgrade: true
  534. # connection information for MySQL (currently only used for persistent history):
  535. mysql:
  536. enabled: false
  537. host: "localhost"
  538. # port is unnecessary for connections via unix domain socket:
  539. #port: 3306
  540. user: "oragono"
  541. password: "hunter2"
  542. history-database: "oragono_history"
  543. timeout: 3s
  544. # languages config
  545. languages:
  546. # whether to load languages
  547. enabled: true
  548. # default language to use for new clients
  549. # 'en' is the default English language in the code
  550. default: en
  551. # which directory contains our language files
  552. path: languages
  553. # limits - these need to be the same across the network
  554. limits:
  555. # nicklen is the max nick length allowed
  556. nicklen: 32
  557. # identlen is the max ident length allowed
  558. identlen: 20
  559. # channellen is the max channel length allowed
  560. channellen: 64
  561. # awaylen is the maximum length of an away message
  562. awaylen: 500
  563. # kicklen is the maximum length of a kick message
  564. kicklen: 1000
  565. # topiclen is the maximum length of a channel topic
  566. topiclen: 1000
  567. # maximum number of monitor entries a client can have
  568. monitor-entries: 100
  569. # whowas entries to store
  570. whowas-entries: 100
  571. # maximum length of channel lists (beI modes)
  572. chan-list-modes: 60
  573. # maximum number of messages to accept during registration (prevents
  574. # DoS / resource exhaustion attacks):
  575. registration-messages: 1024
  576. # message length limits for the new multiline cap
  577. multiline:
  578. max-bytes: 4096 # 0 means disabled
  579. max-lines: 100 # 0 means no limit
  580. # fakelag: prevents clients from spamming commands too rapidly
  581. fakelag:
  582. # whether to enforce fakelag
  583. enabled: true
  584. # time unit for counting command rates
  585. window: 1s
  586. # clients can send this many commands without fakelag being imposed
  587. burst-limit: 5
  588. # once clients have exceeded their burst allowance, they can send only
  589. # this many commands per `window`:
  590. messages-per-window: 2
  591. # client status resets to the default state if they go this long without
  592. # sending any commands:
  593. cooldown: 2s
  594. # the roleplay commands are semi-standardized extensions to IRC that allow
  595. # sending and receiving messages from pseudo-nicknames. this can be used either
  596. # for actual roleplaying, or for bridging IRC with other protocols.
  597. roleplay:
  598. # are roleplay commands enabled at all? (channels and clients still have to
  599. # opt in individually with the +E mode)
  600. enabled: true
  601. # require the "roleplay" oper capability to send roleplay messages?
  602. require-oper: false
  603. # require channel operator permissions to send roleplay messages?
  604. require-chanops: false
  605. # add the real nickname, in parentheses, to the end of every roleplay message?
  606. add-suffix: true
  607. # message history tracking, for the RESUME extension and possibly other uses in future
  608. history:
  609. # should we store messages for later playback?
  610. # by default, messages are stored in RAM only; they do not persist
  611. # across server restarts. however, you should not enable this unless you understand
  612. # how it interacts with the GDPR and/or any data privacy laws that apply
  613. # in your country and the countries of your users.
  614. enabled: false
  615. # how many channel-specific events (messages, joins, parts) should be tracked per channel?
  616. channel-length: 1024
  617. # how many direct messages and notices should be tracked per user?
  618. client-length: 256
  619. # how long should we try to preserve messages?
  620. # if `autoresize-window` is 0, the in-memory message buffers are preallocated to
  621. # their maximum length. if it is nonzero, the buffers are initially small and
  622. # are dynamically expanded up to the maximum length. if the buffer is full
  623. # and the oldest message is older than `autoresize-window`, then it will overwrite
  624. # the oldest message rather than resize; otherwise, it will expand if possible.
  625. autoresize-window: 1h
  626. # number of messages to automatically play back on channel join (0 to disable):
  627. autoreplay-on-join: 0
  628. # maximum number of CHATHISTORY messages that can be
  629. # requested at once (0 disables support for CHATHISTORY)
  630. chathistory-maxmessages: 100
  631. # maximum number of messages that can be replayed at once during znc emulation
  632. # (znc.in/playback, or automatic replay on initial reattach to a persistent client):
  633. znc-maxmessages: 2048
  634. # options to delete old messages, or prevent them from being retrieved
  635. restrictions:
  636. # if this is set, messages older than this cannot be retrieved by anyone
  637. # (and will eventually be deleted from persistent storage, if that's enabled)
  638. #expire-time: 1w
  639. # if this is set, logged-in users cannot retrieve messages older than their
  640. # account registration date, and logged-out users cannot retrieve messages
  641. # older than their sign-on time (modulo grace-period, see below):
  642. enforce-registration-date: false
  643. # but if this is set, you can retrieve messages that are up to `grace-period`
  644. # older than the above cutoff time. this is recommended to allow logged-out
  645. # users to do session resumption / query history after disconnections.
  646. grace-period: 1h
  647. # options to store history messages in a persistent database (currently only MySQL):
  648. persistent:
  649. enabled: false
  650. # store unregistered channel messages in the persistent database?
  651. unregistered-channels: false
  652. # for a registered channel, the channel owner can potentially customize
  653. # the history storage setting. as the server operator, your options are
  654. # 'disabled' (no persistent storage, regardless of per-channel setting),
  655. # 'opt-in', 'opt-out', and 'mandatory' (force persistent storage, ignoring
  656. # per-channel setting):
  657. registered-channels: "opt-out"
  658. # direct messages are only stored in the database for logged-in clients;
  659. # you can control how they are stored here (same options as above).
  660. # if you enable this, strict nickname reservation is strongly recommended
  661. # as well.
  662. direct-messages: "opt-out"