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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441
  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. # sets the permissions for Unix listen sockets. on a typical Linux system,
  19. # the default is 0775 or 0755, which prevents other users/groups from connecting
  20. # to the socket. With 0777, it behaves like a normal TCP socket
  21. # where anyone can connect.
  22. unix-bind-mode: 0777
  23. # tls listeners
  24. tls-listeners:
  25. # listener on ":6697"
  26. ":6697":
  27. key: tls.key
  28. cert: tls.crt
  29. # strict transport security, to get clients to automagically use TLS
  30. sts:
  31. # whether to advertise STS
  32. #
  33. # to stop advertising STS, leave this enabled and set 'duration' below to "0". this will
  34. # advertise to connecting users that the STS policy they have saved is no longer valid
  35. enabled: false
  36. # how long clients should be forced to use TLS for.
  37. # setting this to a too-long time will mean bad things if you later remove your TLS.
  38. # the default duration below is 1 month, 2 days and 5 minutes.
  39. duration: 1mo2d5m
  40. # tls port - you should be listening on this port above
  41. port: 6697
  42. # should clients include this STS policy when they ship their inbuilt preload lists?
  43. preload: false
  44. # use ident protocol to get usernames
  45. check-ident: true
  46. # password to login to the server
  47. # generated using "oragono genpasswd"
  48. #password: ""
  49. # motd filename
  50. # if you change the motd, you should move it to ircd.motd
  51. motd: oragono.motd
  52. # motd formatting codes
  53. # if this is true, the motd is escaped using formatting codes like $c, $b, and $i
  54. motd-formatting: true
  55. # addresses/hostnames the PROXY command can be used from
  56. # this should be restricted to 127.0.0.1/8 and localhost at most
  57. # you should also add these addresses to the connection limits and throttling exemption lists
  58. proxy-allowed-from:
  59. # - localhost
  60. # - "127.0.0.1"
  61. # - "127.0.0.1/8"
  62. # controls the use of the WEBIRC command (by IRC<->web interfaces, bouncers and similar)
  63. webirc:
  64. # one webirc block -- should correspond to one set of gateways
  65. -
  66. # tls fingerprint the gateway must connect with to use this webirc block
  67. fingerprint: 938dd33f4b76dcaf7ce5eb25c852369cb4b8fb47ba22fc235aa29c6623a5f182
  68. # password the gateway uses to connect, made with oragono genpasswd
  69. password: "$2a$04$sLEFDpIOyUp55e6gTMKbOeroT6tMXTjPFvA0eGvwvImVR9pkwv7ee"
  70. # hosts that can use this webirc command
  71. # you should also add these addresses to the connection limits and throttling exemption lists
  72. hosts:
  73. # - localhost
  74. # - "127.0.0.1"
  75. # - "127.0.0.1/8"
  76. # - "0::1"
  77. # maximum length of clients' sendQ in bytes
  78. # this should be big enough to hold /LIST and HELP replies
  79. max-sendq: 16k
  80. # maximum number of connections per subnet
  81. connection-limits:
  82. # whether to enforce connection limits or not
  83. enabled: true
  84. # how wide the cidr should be for IPv4
  85. cidr-len-ipv4: 32
  86. # how wide the cidr should be for IPv6
  87. cidr-len-ipv6: 64
  88. # maximum concurrent connections per subnet (defined above by the cidr length)
  89. connections-per-subnet: 16
  90. # IPs/networks which are exempted from connection limits
  91. exempted:
  92. - "127.0.0.1"
  93. - "127.0.0.1/8"
  94. - "::1/128"
  95. # automated connection throttling
  96. connection-throttling:
  97. # whether to throttle connections or not
  98. enabled: true
  99. # how wide the cidr should be for IPv4
  100. cidr-len-ipv4: 32
  101. # how wide the cidr should be for IPv6
  102. cidr-len-ipv6: 64
  103. # how long to keep track of connections for
  104. duration: 10m
  105. # maximum number of connections, per subnet, within the given duration
  106. max-connections: 32
  107. # how long to ban offenders for, and the message to use
  108. # after banning them, the number of connections is reset (which lets you use UNDLINE to unban people)
  109. ban-duration: 10m
  110. ban-message: You have attempted to connect too many times within a short duration. Wait a while, and you will be able to connect.
  111. # IPs/networks which are exempted from connection limits
  112. exempted:
  113. - "127.0.0.1"
  114. - "127.0.0.1/8"
  115. - "::1/128"
  116. # account options
  117. accounts:
  118. # account registration
  119. registration:
  120. # can users register new accounts?
  121. enabled: true
  122. # this is the bcrypt cost we'll use for account passwords
  123. bcrypt-cost: 12
  124. # length of time a user has to verify their account before it can be re-registered
  125. verify-timeout: "32h"
  126. # callbacks to allow
  127. enabled-callbacks:
  128. - none # no verification needed, will instantly register successfully
  129. # example configuration for sending verification emails via a local mail relay
  130. # callbacks:
  131. # mailto:
  132. # server: localhost
  133. # port: 25
  134. # tls:
  135. # enabled: false
  136. # username: ""
  137. # password: ""
  138. # sender: "admin@my.network"
  139. # is account authentication enabled?
  140. authentication-enabled: true
  141. # some clients (notably Pidgin and Hexchat) offer only a single password field,
  142. # which makes it impossible to specify a separate server password (for the PASS
  143. # command) and SASL password. if this option is set to true, a client that
  144. # successfully authenticates with SASL will not be required to send
  145. # PASS as well, so it can be configured to authenticate with SASL only.
  146. skip-server-password: false
  147. # nick-reservation controls how, and whether, nicknames are linked to accounts
  148. nick-reservation:
  149. # is there any enforcement of reserved nicknames?
  150. enabled: false
  151. # how many nicknames, in addition to the account name, can be reserved?
  152. additional-nick-limit: 2
  153. # method describes how nickname reservation is handled
  154. # timeout: let the user change to the registered nickname, give them X seconds
  155. # to login and then rename them if they haven't done so
  156. # strict: don't let the user change to the registered nickname unless they're
  157. # already logged-in using SASL or NickServ
  158. method: timeout
  159. # rename-timeout - this is how long users have 'til they're renamed
  160. rename-timeout: 30s
  161. # rename-prefix - this is the prefix to use when renaming clients (e.g. Guest-AB54U31)
  162. rename-prefix: Guest-
  163. # vhosts controls the assignment of vhosts (strings displayed in place of the user's
  164. # hostname/IP) by the HostServ service
  165. vhosts:
  166. # are vhosts enabled at all?
  167. enabled: true
  168. # maximum length of a vhost
  169. max-length: 64
  170. # regexp for testing the validity of a vhost
  171. # (make sure any changes you make here are RFC-compliant)
  172. valid-regexp: '^[0-9A-Za-z.\-_/]+$'
  173. # options controlling users requesting vhosts:
  174. user-requests:
  175. # can users request vhosts at all? if this is false, operators with the
  176. # 'vhosts' capability can still assign vhosts manually
  177. enabled: false
  178. # if uncommented, all new vhost requests will be dumped into the given
  179. # channel, so opers can review them as they are sent in. ensure that you
  180. # have registered and restricted the channel appropriately before you
  181. # uncomment this.
  182. #channel: "#vhosts"
  183. # after a user's vhost has been approved or rejected, they need to wait
  184. # this long (starting from the time of their original request)
  185. # before they can request a new one.
  186. cooldown: 168h
  187. # channel options
  188. channels:
  189. # modes that are set when new channels are created
  190. # +n is no-external-messages and +t is op-only-topic
  191. # see /QUOTE HELP cmodes for more channel modes
  192. default-modes: +nt
  193. # channel registration - requires an account
  194. registration:
  195. # can users register new channels?
  196. enabled: true
  197. # operator classes
  198. oper-classes:
  199. # local operator
  200. "local-oper":
  201. # title shown in WHOIS
  202. title: Local Operator
  203. # capability names
  204. capabilities:
  205. - "oper:local_kill"
  206. - "oper:local_ban"
  207. - "oper:local_unban"
  208. - "nofakelag"
  209. # network operator
  210. "network-oper":
  211. # title shown in WHOIS
  212. title: Network Operator
  213. # oper class this extends from
  214. extends: "local-oper"
  215. # capability names
  216. capabilities:
  217. - "oper:remote_kill"
  218. - "oper:remote_ban"
  219. - "oper:remote_unban"
  220. # server admin
  221. "server-admin":
  222. # title shown in WHOIS
  223. title: Server Admin
  224. # oper class this extends from
  225. extends: "local-oper"
  226. # capability names
  227. capabilities:
  228. - "oper:rehash"
  229. - "oper:die"
  230. - "accreg"
  231. - "sajoin"
  232. - "samode"
  233. - "vhosts"
  234. - "chanreg"
  235. # ircd operators
  236. opers:
  237. # operator named 'dan'
  238. dan:
  239. # which capabilities this oper has access to
  240. class: "server-admin"
  241. # custom whois line
  242. whois-line: is a cool dude
  243. # custom hostname
  244. vhost: "n"
  245. # modes are the modes to auto-set upon opering-up
  246. modes: +is acjknoqtux
  247. # password to login with /OPER command
  248. # generated using "oragono genpasswd"
  249. password: "$2a$04$LiytCxaY0lI.guDj2pBN4eLRD5cdM2OLDwqmGAgB6M2OPirbF5Jcu"
  250. # logging, takes inspiration from Insp
  251. logging:
  252. -
  253. # how to log these messages
  254. #
  255. # file log to given target filename
  256. # stdout log to stdout
  257. # stderr log to stderr
  258. method: file stderr
  259. # filename to log to, if file method is selected
  260. filename: ircd.log
  261. # type(s) of logs to keep here. you can use - to exclude those types
  262. #
  263. # exclusions take precedent over inclusions, so if you exclude a type it will NEVER
  264. # be logged, even if you explicitly include it
  265. #
  266. # useful types include:
  267. # * everything (usually used with exclusing some types below)
  268. # accounts account registration and authentication
  269. # channels channel creation and operations
  270. # commands command calling and operations
  271. # opers oper actions, authentication, etc
  272. # password password hashing and comparing
  273. # userinput raw lines sent by users
  274. # useroutput raw lines sent to users
  275. type: "* -userinput -useroutput -localconnect -localconnect-ip"
  276. # one of: debug info warn error
  277. level: info
  278. -
  279. # avoid logging IP addresses to file
  280. method: stderr
  281. type: localconnect localconnect-ip
  282. level: debug
  283. # debug options
  284. debug:
  285. # when enabled, oragono will attempt to recover from certain kinds of
  286. # client-triggered runtime errors that would normally crash the server.
  287. # this makes the server more resilient to DoS, but could result in incorrect
  288. # behavior. deployments that would prefer to "start from scratch", e.g., by
  289. # letting the process crash and auto-restarting it with systemd, can set
  290. # this to false.
  291. recover-from-errors: true
  292. # optionally expose a pprof http endpoint: https://golang.org/pkg/net/http/pprof/
  293. # it is strongly recommended that you don't expose this on a public interface;
  294. # if you need to access it remotely, you can use an SSH tunnel.
  295. # set to `null`, "", leave blank, or omit to disable
  296. # pprof-listener: "localhost:6060"
  297. # datastore configuration
  298. datastore:
  299. # path to the datastore
  300. path: ircd.db
  301. # if the database schema requires an upgrade, `autoupgrade` will attempt to
  302. # perform it automatically on startup. the database will be backed
  303. # up, and if the upgrade fails, the original database will be restored.
  304. autoupgrade: true
  305. # languages config
  306. languages:
  307. # whether to load languages
  308. enabled: true
  309. # default language to use for new clients
  310. # 'en' is the default English language in the code
  311. default: en
  312. # which directory contains our language files
  313. path: languages
  314. # limits - these need to be the same across the network
  315. limits:
  316. # nicklen is the max nick length allowed
  317. nicklen: 32
  318. # channellen is the max channel length allowed
  319. channellen: 64
  320. # awaylen is the maximum length of an away message
  321. awaylen: 500
  322. # kicklen is the maximum length of a kick message
  323. kicklen: 1000
  324. # topiclen is the maximum length of a channel topic
  325. topiclen: 1000
  326. # maximum number of monitor entries a client can have
  327. monitor-entries: 100
  328. # whowas entries to store
  329. whowas-entries: 100
  330. # maximum length of channel lists (beI modes)
  331. chan-list-modes: 60
  332. # maximum length of IRC lines
  333. # this should generally be 1024-2048, and will only apply when negotiated by clients
  334. linelen:
  335. # tags section
  336. tags: 2048
  337. # rest of the message
  338. rest: 2048
  339. # fakelag: prevents clients from spamming commands too rapidly
  340. fakelag:
  341. # whether to enforce fakelag
  342. enabled: false
  343. # time unit for counting command rates
  344. window: 1s
  345. # clients can send this many commands without fakelag being imposed
  346. burst-limit: 5
  347. # once clients have exceeded their burst allowance, they can send only
  348. # this many commands per `window`:
  349. messages-per-window: 2
  350. # client status resets to the default state if they go this long without
  351. # sending any commands:
  352. cooldown: 2s