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.

oragono.yaml 33KB

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