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.

oragono.yaml 20KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561
  1. # oragono IRCd config
  2. # network configuration
  3. network:
  4. # name of the network
  5. name: OragonoTest
  6. # server configuration
  7. server:
  8. # server name
  9. name: oragono.test
  10. # addresses to listen on
  11. listen:
  12. - ":6697" # SSL/TLS port
  13. - ":6667" # plaintext port
  14. # To disable plaintext over the Internet, comment out :6667 and replace with:
  15. # - "127.0.0.1:6667" # (loopback ipv4, localhost-only)
  16. # - "[::1]:6667" # (loopback ipv6, localhost-only)
  17. # Unix domain socket for proxying:
  18. # - "/tmp/oragono_sock"
  19. # sets the permissions for Unix listen sockets. on a typical Linux system,
  20. # the default is 0775 or 0755, which prevents other users/groups from connecting
  21. # to the socket. With 0777, it behaves like a normal TCP socket
  22. # where anyone can connect.
  23. unix-bind-mode: 0777
  24. # tls listeners
  25. tls-listeners:
  26. # listener on ":6697"
  27. ":6697":
  28. key: tls.key
  29. cert: tls.crt
  30. # tor listeners: designate listeners for use by a tor hidden service / .onion address
  31. # WARNING: if you are running oragono as a pure hidden service, see the
  32. # anonymization / hardening recommendations in docs/MANUAL.md
  33. tor-listeners:
  34. # any connections that come in on these listeners will be considered
  35. # Tor connections. it is strongly recommended that these listeners *not*
  36. # be on public interfaces: they should be on 127.0.0.0/8 or unix domain
  37. listeners:
  38. # - "/tmp/oragono_tor_sock"
  39. # if this is true, connections from Tor must authenticate with SASL
  40. require-sasl: false
  41. # what hostname should be displayed for Tor connections?
  42. vhost: "tor-network.onion"
  43. # allow at most this many connections at once (0 for no limit):
  44. max-connections: 64
  45. # connection throttling (limit how many connection attempts are allowed at once):
  46. throttle-duration: 10m
  47. # set to 0 to disable throttling:
  48. max-connections-per-duration: 64
  49. # strict transport security, to get clients to automagically use TLS
  50. sts:
  51. # whether to advertise STS
  52. #
  53. # to stop advertising STS, leave this enabled and set 'duration' below to "0". this will
  54. # advertise to connecting users that the STS policy they have saved is no longer valid
  55. enabled: false
  56. # how long clients should be forced to use TLS for.
  57. # setting this to a too-long time will mean bad things if you later remove your TLS.
  58. # the default duration below is 1 month, 2 days and 5 minutes.
  59. duration: 1mo2d5m
  60. # tls port - you should be listening on this port above
  61. port: 6697
  62. # should clients include this STS policy when they ship their inbuilt preload lists?
  63. preload: false
  64. # use ident protocol to get usernames
  65. check-ident: false
  66. # password to login to the server
  67. # generated using "oragono genpasswd"
  68. #password: ""
  69. # motd filename
  70. # if you change the motd, you should move it to ircd.motd
  71. motd: oragono.motd
  72. # motd formatting codes
  73. # if this is true, the motd is escaped using formatting codes like $c, $b, and $i
  74. motd-formatting: true
  75. # addresses/CIDRs the PROXY command can be used from
  76. # this should be restricted to 127.0.0.1/8 and ::1/128 (unless you have a good reason)
  77. # you should also add these addresses to the connection limits and throttling exemption lists
  78. proxy-allowed-from:
  79. # - localhost
  80. # - "127.0.0.1"
  81. # - "127.0.0.1/8"
  82. # controls the use of the WEBIRC command (by IRC<->web interfaces, bouncers and similar)
  83. webirc:
  84. # one webirc block -- should correspond to one set of gateways
  85. -
  86. # tls fingerprint the gateway must connect with to use this webirc block
  87. fingerprint: 938dd33f4b76dcaf7ce5eb25c852369cb4b8fb47ba22fc235aa29c6623a5f182
  88. # password the gateway uses to connect, made with oragono genpasswd
  89. password: "$2a$04$sLEFDpIOyUp55e6gTMKbOeroT6tMXTjPFvA0eGvwvImVR9pkwv7ee"
  90. # addresses/CIDRs that can use this webirc command
  91. # you should also add these addresses to the connection limits and throttling exemption lists
  92. hosts:
  93. # - localhost
  94. # - "127.0.0.1"
  95. # - "127.0.0.1/8"
  96. # - "0::1"
  97. # allow use of the RESUME extension over plaintext connections:
  98. # do not enable this unless the ircd is only accessible over internal networks
  99. allow-plaintext-resume: false
  100. # maximum length of clients' sendQ in bytes
  101. # this should be big enough to hold bursts of channel/direct messages
  102. max-sendq: 16k
  103. # compatibility with legacy clients
  104. compatibility:
  105. # many clients require that the final parameter of certain messages be an
  106. # RFC1459 trailing parameter, i.e., prefixed with :, whether or not this is
  107. # actually required. this forces Oragono to send those parameters
  108. # as trailings. this is recommended unless you're testing clients for conformance;
  109. # defaults to true when unset for that reason.
  110. force-trailing: true
  111. # some clients (ZNC 1.6.x and lower, Pidgin 2.12 and lower, Adium) do not
  112. # respond correctly to SASL messages with the server name as a prefix:
  113. # https://github.com/znc/znc/issues/1212
  114. # this works around that bug, allowing them to use SASL.
  115. send-unprefixed-sasl: true
  116. # maximum number of connections per subnet
  117. connection-limits:
  118. # whether to enforce connection limits or not
  119. enabled: true
  120. # how wide the cidr should be for IPv4
  121. cidr-len-ipv4: 32
  122. # how wide the cidr should be for IPv6
  123. cidr-len-ipv6: 64
  124. # maximum concurrent connections per subnet (defined above by the cidr length)
  125. connections-per-subnet: 16
  126. # IPs/networks which are exempted from connection limits
  127. exempted:
  128. - "localhost"
  129. # - "192.168.1.1"
  130. # - "2001:0db8::/32"
  131. # automated connection throttling
  132. connection-throttling:
  133. # whether to throttle connections or not
  134. enabled: true
  135. # how wide the cidr should be for IPv4
  136. cidr-len-ipv4: 32
  137. # how wide the cidr should be for IPv6
  138. cidr-len-ipv6: 64
  139. # how long to keep track of connections for
  140. duration: 10m
  141. # maximum number of connections, per subnet, within the given duration
  142. max-connections: 32
  143. # how long to ban offenders for, and the message to use
  144. # after banning them, the number of connections is reset (which lets you use UNDLINE to unban people)
  145. ban-duration: 10m
  146. ban-message: You have attempted to connect too many times within a short duration. Wait a while, and you will be able to connect.
  147. # IPs/networks which are exempted from connection limits
  148. exempted:
  149. - "localhost"
  150. # - "192.168.1.1"
  151. # - "2001:0db8::/32"
  152. # account options
  153. accounts:
  154. # account registration
  155. registration:
  156. # can users register new accounts?
  157. enabled: true
  158. # this is the bcrypt cost we'll use for account passwords
  159. bcrypt-cost: 12
  160. # length of time a user has to verify their account before it can be re-registered
  161. verify-timeout: "32h"
  162. # callbacks to allow
  163. enabled-callbacks:
  164. - none # no verification needed, will instantly register successfully
  165. # example configuration for sending verification emails via a local mail relay
  166. # callbacks:
  167. # mailto:
  168. # server: localhost
  169. # port: 25
  170. # tls:
  171. # enabled: false
  172. # username: ""
  173. # password: ""
  174. # sender: "admin@my.network"
  175. # is account authentication enabled?
  176. authentication-enabled: true
  177. # throttle account login attempts (to prevent either password guessing, or DoS
  178. # attacks on the server aimed at forcing repeated expensive bcrypt computations)
  179. login-throttling:
  180. enabled: true
  181. # window
  182. duration: 1m
  183. # number of attempts allowed within the window
  184. max-attempts: 3
  185. # some clients (notably Pidgin and Hexchat) offer only a single password field,
  186. # which makes it impossible to specify a separate server password (for the PASS
  187. # command) and SASL password. if this option is set to true, a client that
  188. # successfully authenticates with SASL will not be required to send
  189. # PASS as well, so it can be configured to authenticate with SASL only.
  190. skip-server-password: false
  191. # require-sasl controls whether clients are required to have accounts
  192. # (and sign into them using SASL) to connect to the server
  193. require-sasl:
  194. # if this is enabled, all clients must authenticate with SASL while connecting
  195. enabled: false
  196. # IPs/CIDRs which are exempted from the account requirement
  197. exempted:
  198. - "localhost"
  199. # - '127.0.0.2'
  200. # - '10.10.0.0/16'
  201. # nick-reservation controls how, and whether, nicknames are linked to accounts
  202. nick-reservation:
  203. # is there any enforcement of reserved nicknames?
  204. enabled: false
  205. # how many nicknames, in addition to the account name, can be reserved?
  206. additional-nick-limit: 2
  207. # method describes how nickname reservation is handled
  208. # already logged-in using SASL or NickServ
  209. # timeout: let the user change to the registered nickname, give them X seconds
  210. # to login and then rename them if they haven't done so
  211. # strict: don't let the user change to the registered nickname unless they're
  212. # already logged-in using SASL or NickServ
  213. # optional: no enforcement by default, but allow users to opt in to
  214. # the enforcement level of their choice
  215. method: timeout
  216. # allow users to set their own nickname enforcement status, e.g.,
  217. # to opt in to strict enforcement
  218. allow-custom-enforcement: true
  219. # rename-timeout - this is how long users have 'til they're renamed
  220. rename-timeout: 30s
  221. # rename-prefix - this is the prefix to use when renaming clients (e.g. Guest-AB54U31)
  222. rename-prefix: Guest-
  223. # bouncer controls whether oragono can act as a bouncer, i.e., allowing
  224. # multiple connections to attach to the same client/nickname identity
  225. bouncer:
  226. # when disabled, each connection must use a separate nickname (as is the
  227. # typical behavior of IRC servers). when enabled, a new connection that
  228. # has authenticated with SASL can associate itself with an existing
  229. # client
  230. enabled: true
  231. # clients can opt in to bouncer functionality using the cap system, or
  232. # via nickserv. if this is enabled, then they have to opt out instead
  233. allowed-by-default: false
  234. # vhosts controls the assignment of vhosts (strings displayed in place of the user's
  235. # hostname/IP) by the HostServ service
  236. vhosts:
  237. # are vhosts enabled at all?
  238. enabled: true
  239. # maximum length of a vhost
  240. max-length: 64
  241. # regexp for testing the validity of a vhost
  242. # (make sure any changes you make here are RFC-compliant)
  243. valid-regexp: '^[0-9A-Za-z.\-_/]+$'
  244. # options controlling users requesting vhosts:
  245. user-requests:
  246. # can users request vhosts at all? if this is false, operators with the
  247. # 'vhosts' capability can still assign vhosts manually
  248. enabled: false
  249. # if uncommented, all new vhost requests will be dumped into the given
  250. # channel, so opers can review them as they are sent in. ensure that you
  251. # have registered and restricted the channel appropriately before you
  252. # uncomment this.
  253. #channel: "#vhosts"
  254. # after a user's vhost has been approved or rejected, they need to wait
  255. # this long (starting from the time of their original request)
  256. # before they can request a new one.
  257. cooldown: 168h
  258. # channel options
  259. channels:
  260. # modes that are set when new channels are created
  261. # +n is no-external-messages and +t is op-only-topic
  262. # see /QUOTE HELP cmodes for more channel modes
  263. default-modes: +nt
  264. # how many channels can a client be in at once?
  265. max-channels-per-client: 100
  266. # channel registration - requires an account
  267. registration:
  268. # can users register new channels?
  269. enabled: true
  270. # how many channels can each account register?
  271. max-channels-per-account: 15
  272. # operator classes
  273. oper-classes:
  274. # local operator
  275. "local-oper":
  276. # title shown in WHOIS
  277. title: Local Operator
  278. # capability names
  279. capabilities:
  280. - "oper:local_kill"
  281. - "oper:local_ban"
  282. - "oper:local_unban"
  283. - "nofakelag"
  284. # network operator
  285. "network-oper":
  286. # title shown in WHOIS
  287. title: Network Operator
  288. # oper class this extends from
  289. extends: "local-oper"
  290. # capability names
  291. capabilities:
  292. - "oper:remote_kill"
  293. - "oper:remote_ban"
  294. - "oper:remote_unban"
  295. # server admin
  296. "server-admin":
  297. # title shown in WHOIS
  298. title: Server Admin
  299. # oper class this extends from
  300. extends: "local-oper"
  301. # capability names
  302. capabilities:
  303. - "oper:rehash"
  304. - "oper:die"
  305. - "accreg"
  306. - "sajoin"
  307. - "samode"
  308. - "vhosts"
  309. - "chanreg"
  310. # ircd operators
  311. opers:
  312. # operator named 'dan'
  313. dan:
  314. # which capabilities this oper has access to
  315. class: "server-admin"
  316. # custom whois line
  317. whois-line: is a cool dude
  318. # custom hostname
  319. vhost: "n"
  320. # modes are the modes to auto-set upon opering-up
  321. modes: +is acjknoqtux
  322. # password to login with /OPER command
  323. # generated using "oragono genpasswd"
  324. password: "$2a$04$LiytCxaY0lI.guDj2pBN4eLRD5cdM2OLDwqmGAgB6M2OPirbF5Jcu"
  325. # logging, takes inspiration from Insp
  326. logging:
  327. -
  328. # how to log these messages
  329. #
  330. # file log to given target filename
  331. # stdout log to stdout
  332. # stderr log to stderr
  333. # (you can specify multiple methods, e.g., to log to both stderr and a file)
  334. method: stderr
  335. # filename to log to, if file method is selected
  336. # filename: ircd.log
  337. # type(s) of logs to keep here. you can use - to exclude those types
  338. #
  339. # exclusions take precedent over inclusions, so if you exclude a type it will NEVER
  340. # be logged, even if you explicitly include it
  341. #
  342. # useful types include:
  343. # * everything (usually used with exclusing some types below)
  344. # server server startup, rehash, and shutdown events
  345. # accounts account registration and authentication
  346. # channels channel creation and operations
  347. # commands command calling and operations
  348. # opers oper actions, authentication, etc
  349. # services actions related to NickServ, ChanServ, etc.
  350. # internal unexpected runtime behavior, including potential bugs
  351. # userinput raw lines sent by users
  352. # useroutput raw lines sent to users
  353. type: "* -userinput -useroutput"
  354. # one of: debug info warn error
  355. level: info
  356. #-
  357. # # example of a file log that avoids logging IP addresses
  358. # method: file
  359. # filename: ircd.log
  360. # type: "* -userinput -useroutput -localconnect -localconnect-ip"
  361. # level: debug
  362. # debug options
  363. debug:
  364. # when enabled, oragono will attempt to recover from certain kinds of
  365. # client-triggered runtime errors that would normally crash the server.
  366. # this makes the server more resilient to DoS, but could result in incorrect
  367. # behavior. deployments that would prefer to "start from scratch", e.g., by
  368. # letting the process crash and auto-restarting it with systemd, can set
  369. # this to false.
  370. recover-from-errors: true
  371. # optionally expose a pprof http endpoint: https://golang.org/pkg/net/http/pprof/
  372. # it is strongly recommended that you don't expose this on a public interface;
  373. # if you need to access it remotely, you can use an SSH tunnel.
  374. # set to `null`, "", leave blank, or omit to disable
  375. # pprof-listener: "localhost:6060"
  376. # datastore configuration
  377. datastore:
  378. # path to the datastore
  379. path: ircd.db
  380. # if the database schema requires an upgrade, `autoupgrade` will attempt to
  381. # perform it automatically on startup. the database will be backed
  382. # up, and if the upgrade fails, the original database will be restored.
  383. autoupgrade: true
  384. # languages config
  385. languages:
  386. # whether to load languages
  387. enabled: true
  388. # default language to use for new clients
  389. # 'en' is the default English language in the code
  390. default: en
  391. # which directory contains our language files
  392. path: languages
  393. # limits - these need to be the same across the network
  394. limits:
  395. # nicklen is the max nick length allowed
  396. nicklen: 32
  397. # identlen is the max ident length allowed
  398. identlen: 20
  399. # channellen is the max channel length allowed
  400. channellen: 64
  401. # awaylen is the maximum length of an away message
  402. awaylen: 500
  403. # kicklen is the maximum length of a kick message
  404. kicklen: 1000
  405. # topiclen is the maximum length of a channel topic
  406. topiclen: 1000
  407. # maximum number of monitor entries a client can have
  408. monitor-entries: 100
  409. # whowas entries to store
  410. whowas-entries: 100
  411. # maximum length of channel lists (beI modes)
  412. chan-list-modes: 60
  413. # maximum length of IRC lines
  414. # this should generally be 1024-2048, and will only apply when negotiated by clients
  415. linelen:
  416. # ratified version of the message-tags cap fixes the max tag length at 8191 bytes
  417. # configurable length for the rest of the message:
  418. rest: 2048
  419. # fakelag: prevents clients from spamming commands too rapidly
  420. fakelag:
  421. # whether to enforce fakelag
  422. enabled: false
  423. # time unit for counting command rates
  424. window: 1s
  425. # clients can send this many commands without fakelag being imposed
  426. burst-limit: 5
  427. # once clients have exceeded their burst allowance, they can send only
  428. # this many commands per `window`:
  429. messages-per-window: 2
  430. # client status resets to the default state if they go this long without
  431. # sending any commands:
  432. cooldown: 2s
  433. # message history tracking, for the RESUME extension and possibly other uses in future
  434. history:
  435. # should we store messages for later playback?
  436. # the current implementation stores messages in RAM only; they do not persist
  437. # across server restarts. however, you should not enable this unless you understand
  438. # how it interacts with the GDPR and/or any data privacy laws that apply
  439. # in your country and the countries of your users.
  440. enabled: false
  441. # how many channel-specific events (messages, joins, parts) should be tracked per channel?
  442. channel-length: 256
  443. # how many direct messages and notices should be tracked per user?
  444. client-length: 64
  445. # number of messages to automatically play back on channel join (0 to disable):
  446. autoreplay-on-join: 0
  447. # maximum number of CHATHISTORY messages that can be
  448. # requested at once (0 disables support for CHATHISTORY)
  449. chathistory-maxmessages: 100