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

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