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

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