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

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