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.

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