Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

oragono.yaml 7.4KB

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