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

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