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.

default.yaml 40KB

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