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

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