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

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