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.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277
  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. # channel options
  107. channels:
  108. # channel registration - requires an account
  109. registration:
  110. # can users register new channels?
  111. enabled: true
  112. # operator classes
  113. oper-classes:
  114. # local operator
  115. "local-oper":
  116. # title shown in WHOIS
  117. title: Local Operator
  118. # capability names
  119. capabilities:
  120. - "oper:local_kill"
  121. - "oper:local_ban"
  122. - "oper:local_unban"
  123. # network operator
  124. "network-oper":
  125. # title shown in WHOIS
  126. title: Network Operator
  127. # oper class this extends from
  128. extends: "local-oper"
  129. # capability names
  130. capabilities:
  131. - "oper:remote_kill"
  132. - "oper:remote_ban"
  133. - "oper:remote_unban"
  134. # server admin
  135. "server-admin":
  136. # title shown in WHOIS
  137. title: Server Admin
  138. # oper class this extends from
  139. extends: "local-oper"
  140. # capability names
  141. capabilities:
  142. - "oper:rehash"
  143. - "oper:die"
  144. - "samode"
  145. # ircd operators
  146. opers:
  147. # operator named 'dan'
  148. dan:
  149. # which capabilities this oper has access to
  150. class: "server-admin"
  151. # custom whois line
  152. whois-line: is a cool dude
  153. # custom hostname
  154. vhost: "n"
  155. # password to login with /OPER command
  156. # generated using "oragono genpasswd"
  157. password: JDJhJDA0JE1vZmwxZC9YTXBhZ3RWT2xBbkNwZnV3R2N6VFUwQUI0RUJRVXRBRHliZVVoa0VYMnlIaGsu
  158. # logging, takes inspiration from Insp
  159. logging:
  160. -
  161. # how to log these messages
  162. #
  163. # file log to given target filename
  164. # stderr log to stderr
  165. method: file stderr
  166. # filename to log to, if file method is selected
  167. filename: ircd.log
  168. # type(s) of logs to keep here. you can use - to exclude those types
  169. #
  170. # exclusions take precedent over inclusions, so if you exclude a type it will NEVER
  171. # be logged, even if you explicitly include it
  172. #
  173. # useful types include:
  174. # * everything (usually used with exclusing some types below)
  175. # accounts account registration and authentication
  176. # channels channel creation and operations
  177. # commands command calling and operations
  178. # opers oper actions, authentication, etc
  179. # password password hashing and comparing
  180. # userinput raw lines sent by users
  181. # useroutput raw lines sent to users
  182. type: "* -userinput -useroutput -localconnect -localconnect-ip"
  183. # one of: debug info warn error
  184. level: info
  185. -
  186. # avoid logging IP addresses to file
  187. method: stderr
  188. type: localconnect localconnect-ip
  189. level: debug
  190. # datastore configuration
  191. datastore:
  192. # path to the datastore
  193. path: ircd.db
  194. # limits - these need to be the same across the network
  195. limits:
  196. # nicklen is the max nick length allowed
  197. nicklen: 32
  198. # channellen is the max channel length allowed
  199. channellen: 64
  200. # awaylen is the maximum length of an away message
  201. awaylen: 500
  202. # kicklen is the maximum length of a kick message
  203. kicklen: 1000
  204. # topiclen is the maximum length of a channel topic
  205. topiclen: 1000
  206. # maximum number of monitor entries a client can have
  207. monitor-entries: 100
  208. # whowas entries to store
  209. whowas-entries: 100
  210. # maximum length of channel lists (beI modes)
  211. chan-list-modes: 60
  212. # maximum length of IRC lines
  213. # this should generally be 1024-2048, and will only apply when negotiated by clients
  214. linelen:
  215. # tags section
  216. tags: 2048
  217. # rest of the message
  218. rest: 2048