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

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