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

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