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

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