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.

conventional.yaml 34KB

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