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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213
  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. - "127.0.0.1:6668"
  14. - "[::1]:6668"
  15. - ":6697" # ssl port
  16. # websocket listening port
  17. ws-listen: ":8080"
  18. # tls listeners
  19. tls-listeners:
  20. # listener on ":6697"
  21. ":6697":
  22. key: tls.key
  23. cert: tls.crt
  24. # rest management API, for use with web interface
  25. rest-api:
  26. # whether the API is enabled or not
  27. enabled: false
  28. # rest API listening port
  29. listen: "localhost:8090"
  30. # use ident protocol to get usernames
  31. check-ident: true
  32. # password to login to the server
  33. # generated using "oragono genpasswd"
  34. #password: ""
  35. # log level, one of error, warn, info, debug
  36. log: debug
  37. # motd filename
  38. # if you change the motd, you should move it to ircd.motd
  39. motd: oragono.motd
  40. # maximum number of connections per subnet
  41. connection-limits:
  42. # whether to throttle limits or not
  43. enabled: true
  44. # how wide the cidr should be for IPv4
  45. cidr-len-ipv4: 24
  46. # how wide the cidr should be for IPv6
  47. cidr-len-ipv6: 120
  48. # maximum number of IPs per subnet (defined above by the cird length)
  49. ips-per-subnet: 16
  50. # IPs/networks which are exempted from connection limits
  51. exempted:
  52. - "127.0.0.1"
  53. - "127.0.0.1/8"
  54. - "::1/128"
  55. # automated connection throttling
  56. connection-throttling:
  57. # whether to throttle connections or not
  58. enabled: true
  59. # how wide the cidr should be for IPv4
  60. cidr-len-ipv4: 32
  61. # how wide the cidr should be for IPv6
  62. cidr-len-ipv6: 128
  63. # how long to keep track of connections for
  64. duration: 10m
  65. # maximum number of connections, per subnet, within the given duration
  66. max-connections: 12
  67. # how long to ban offenders for, and the message to use
  68. # after banning them, the number of connections is reset (which lets you use UNDLINE to unban people)
  69. ban-duration: 10m
  70. ban-message: You have attempted to connect too many times within a short duration. Wait a while, and you will be able to connect.
  71. # IPs/networks which are exempted from connection limits
  72. exempted:
  73. - "127.0.0.1"
  74. - "127.0.0.1/8"
  75. - "::1/128"
  76. # account/channel registration
  77. registration:
  78. # account registration
  79. accounts:
  80. # can users register new accounts?
  81. enabled: true
  82. # length of time a user has to verify their account before it can be re-registered
  83. # default is 120 hours, or 5 days
  84. verify-timeout: "120h"
  85. # callbacks to allow
  86. enabled-callbacks:
  87. - none # no verification needed, will instantly register successfully
  88. # whether account authentication is enabled
  89. authentication-enabled: true
  90. # operator classes
  91. oper-classes:
  92. # local operator
  93. "local-oper":
  94. # title shown in WHOIS
  95. title: Local Operator
  96. # capability names
  97. capabilities:
  98. - "oper:local_kill"
  99. - "oper:local_ban"
  100. - "oper:local_unban"
  101. # network operator
  102. "network-oper":
  103. # title shown in WHOIS
  104. title: Network Operator
  105. # oper class this extends from
  106. extends: "local-oper"
  107. # capability names
  108. capabilities:
  109. - "oper:remote_kill"
  110. - "oper:remote_ban"
  111. - "oper:remote_unban"
  112. # server admin
  113. "server-admin":
  114. # title shown in WHOIS
  115. title: Server Admin
  116. # oper class this extends from
  117. extends: "local-oper"
  118. # capability names
  119. capabilities:
  120. - "oper:rehash"
  121. - "oper:die"
  122. # ircd operators
  123. opers:
  124. # operator named 'dan'
  125. dan:
  126. # which capabilities this oper has access to
  127. class: "server-admin"
  128. # custom whois line
  129. whois-line: is a cool dude
  130. # custom hostname
  131. vhost: "n"
  132. # password to login with /OPER command
  133. # generated using "oragono genpasswd"
  134. password: JDJhJDA0JE1vZmwxZC9YTXBhZ3RWT2xBbkNwZnV3R2N6VFUwQUI0RUJRVXRBRHliZVVoa0VYMnlIaGsu
  135. # datastore configuration
  136. datastore:
  137. # path to the datastore
  138. path: ircd.db
  139. # limits - these need to be the same across the network
  140. limits:
  141. # nicklen is the max nick length allowed
  142. nicklen: 32
  143. # channellen is the max channel length allowed
  144. channellen: 64
  145. # awaylen is the maximum length of an away message
  146. awaylen: 500
  147. # kicklen is the maximum length of a kick message
  148. kicklen: 1000
  149. # topiclen is the maximum length of a channel topic
  150. topiclen: 1000
  151. # maximum number of monitor entries a client can have
  152. monitor-entries: 100
  153. # whowas entries to store
  154. whowas-entries: 100
  155. # maximum length of channel lists (beI modes)
  156. chan-list-modes: 60
  157. # maximum length of IRC lines
  158. # this should generally be 1024-2048, and will only apply when negotiated by clients
  159. linelen:
  160. # tags section
  161. tags: 2048
  162. # rest of the message
  163. rest: 2048