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.3KB

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