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

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