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.

traditional.yaml 36KB

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