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

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