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

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