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

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