您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

default.yaml 38KB

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