Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

oragono.yaml 6.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247
  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. # motd filename
  36. # if you change the motd, you should move it to ircd.motd
  37. motd: oragono.motd
  38. # maximum number of connections per subnet
  39. connection-limits:
  40. # whether to throttle limits or not
  41. enabled: true
  42. # how wide the cidr should be for IPv4
  43. cidr-len-ipv4: 24
  44. # how wide the cidr should be for IPv6
  45. cidr-len-ipv6: 120
  46. # maximum number of IPs per subnet (defined above by the cird length)
  47. ips-per-subnet: 16
  48. # IPs/networks which are exempted from connection limits
  49. exempted:
  50. - "127.0.0.1"
  51. - "127.0.0.1/8"
  52. - "::1/128"
  53. # automated connection throttling
  54. connection-throttling:
  55. # whether to throttle connections or not
  56. enabled: true
  57. # how wide the cidr should be for IPv4
  58. cidr-len-ipv4: 32
  59. # how wide the cidr should be for IPv6
  60. cidr-len-ipv6: 128
  61. # how long to keep track of connections for
  62. duration: 10m
  63. # maximum number of connections, per subnet, within the given duration
  64. max-connections: 12
  65. # how long to ban offenders for, and the message to use
  66. # after banning them, the number of connections is reset (which lets you use UNDLINE to unban people)
  67. ban-duration: 10m
  68. ban-message: You have attempted to connect too many times within a short duration. Wait a while, and you will be able to connect.
  69. # IPs/networks which are exempted from connection limits
  70. exempted:
  71. - "127.0.0.1"
  72. - "127.0.0.1/8"
  73. - "::1/128"
  74. # account options
  75. accounts:
  76. # account registration
  77. registration:
  78. # can users register new accounts?
  79. enabled: true
  80. # length of time a user has to verify their account before it can be re-registered
  81. # default is 120 hours, or 5 days
  82. verify-timeout: "120h"
  83. # callbacks to allow
  84. enabled-callbacks:
  85. - none # no verification needed, will instantly register successfully
  86. # is account authentication enabled?
  87. authentication-enabled: true
  88. # operator classes
  89. oper-classes:
  90. # local operator
  91. "local-oper":
  92. # title shown in WHOIS
  93. title: Local Operator
  94. # capability names
  95. capabilities:
  96. - "oper:local_kill"
  97. - "oper:local_ban"
  98. - "oper:local_unban"
  99. # network operator
  100. "network-oper":
  101. # title shown in WHOIS
  102. title: Network Operator
  103. # oper class this extends from
  104. extends: "local-oper"
  105. # capability names
  106. capabilities:
  107. - "oper:remote_kill"
  108. - "oper:remote_ban"
  109. - "oper:remote_unban"
  110. # server admin
  111. "server-admin":
  112. # title shown in WHOIS
  113. title: Server Admin
  114. # oper class this extends from
  115. extends: "local-oper"
  116. # capability names
  117. capabilities:
  118. - "oper:rehash"
  119. - "oper:die"
  120. - "samode"
  121. # ircd operators
  122. opers:
  123. # operator named 'dan'
  124. dan:
  125. # which capabilities this oper has access to
  126. class: "server-admin"
  127. # custom whois line
  128. whois-line: is a cool dude
  129. # custom hostname
  130. vhost: "n"
  131. # password to login with /OPER command
  132. # generated using "oragono genpasswd"
  133. password: JDJhJDA0JE1vZmwxZC9YTXBhZ3RWT2xBbkNwZnV3R2N6VFUwQUI0RUJRVXRBRHliZVVoa0VYMnlIaGsu
  134. # logging, takes inspiration from Insp
  135. logging:
  136. -
  137. # how to log these messages
  138. #
  139. # file log to given target filename
  140. # stderr log to stderr
  141. method: file stderr
  142. # filename to log to, if file method is selected
  143. filename: ircd.log
  144. # type(s) of logs to keep here. you can use - to exclude those types
  145. #
  146. # exclusions take precedent over inclusions, so if you exclude a type it will NEVER
  147. # be logged, even if you explicitly include it
  148. #
  149. # useful types include:
  150. # * everything (usually used with exclusing some types below)
  151. # accounts account registration and authentication
  152. # channels channel creation and operations
  153. # commands command calling and operations
  154. # opers oper actions, authentication, etc
  155. # password password hashing and comparing
  156. # userinput raw lines sent by users
  157. # useroutput raw lines sent to users
  158. type: "* -userinput -useroutput -localconnect -localconnect-ip"
  159. # one of: debug info warn error
  160. level: info
  161. -
  162. # avoid logging IP addresses to file
  163. method: stderr
  164. type: localconnect localconnect-ip
  165. level: debug
  166. # datastore configuration
  167. datastore:
  168. # path to the datastore
  169. path: ircd.db
  170. # limits - these need to be the same across the network
  171. limits:
  172. # nicklen is the max nick length allowed
  173. nicklen: 32
  174. # channellen is the max channel length allowed
  175. channellen: 64
  176. # awaylen is the maximum length of an away message
  177. awaylen: 500
  178. # kicklen is the maximum length of a kick message
  179. kicklen: 1000
  180. # topiclen is the maximum length of a channel topic
  181. topiclen: 1000
  182. # maximum number of monitor entries a client can have
  183. monitor-entries: 100
  184. # whowas entries to store
  185. whowas-entries: 100
  186. # maximum length of channel lists (beI modes)
  187. chan-list-modes: 60
  188. # maximum length of IRC lines
  189. # this should generally be 1024-2048, and will only apply when negotiated by clients
  190. linelen:
  191. # tags section
  192. tags: 2048
  193. # rest of the message
  194. rest: 2048