You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

traditional.yaml 38KB

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