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 34KB

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