Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

oragono.yaml 33KB

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