Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

oragono.yaml 17KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511
  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/CIDRs the PROXY command can be used from
  57. # this should be restricted to 127.0.0.1/8 and ::1/128 (unless you have a good reason)
  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. # addresses/CIDRs 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 bursts of channel/direct messages
  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. - "localhost"
  97. # - "192.168.1.1"
  98. # - "2001:0db8::/32"
  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. - "localhost"
  118. # - "192.168.1.1"
  119. # - "2001:0db8::/32"
  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. # require-sasl controls whether clients are required to have accounts
  160. # (and sign into them using SASL) to connect to the server
  161. require-sasl:
  162. # if this is enabled, all clients must authenticate with SASL while connecting
  163. enabled: false
  164. # IPs/CIDRs which are exempted from the account requirement
  165. exempted:
  166. - "localhost"
  167. # - '127.0.0.2'
  168. # - '10.10.0.0/16'
  169. # nick-reservation controls how, and whether, nicknames are linked to accounts
  170. nick-reservation:
  171. # is there any enforcement of reserved nicknames?
  172. enabled: false
  173. # how many nicknames, in addition to the account name, can be reserved?
  174. additional-nick-limit: 2
  175. # method describes how nickname reservation is handled
  176. # already logged-in using SASL or NickServ
  177. # timeout: let the user change to the registered nickname, give them X seconds
  178. # to login and then rename them if they haven't done so
  179. # strict: don't let the user change to the registered nickname unless they're
  180. # already logged-in using SASL or NickServ
  181. # optional: no enforcement by default, but allow users to opt in to
  182. # the enforcement level of their choice
  183. method: timeout
  184. # allow users to set their own nickname enforcement status, e.g.,
  185. # to opt in to strict enforcement
  186. allow-custom-enforcement: true
  187. # rename-timeout - this is how long users have 'til they're renamed
  188. rename-timeout: 30s
  189. # rename-prefix - this is the prefix to use when renaming clients (e.g. Guest-AB54U31)
  190. rename-prefix: Guest-
  191. # vhosts controls the assignment of vhosts (strings displayed in place of the user's
  192. # hostname/IP) by the HostServ service
  193. vhosts:
  194. # are vhosts enabled at all?
  195. enabled: true
  196. # maximum length of a vhost
  197. max-length: 64
  198. # regexp for testing the validity of a vhost
  199. # (make sure any changes you make here are RFC-compliant)
  200. valid-regexp: '^[0-9A-Za-z.\-_/]+$'
  201. # options controlling users requesting vhosts:
  202. user-requests:
  203. # can users request vhosts at all? if this is false, operators with the
  204. # 'vhosts' capability can still assign vhosts manually
  205. enabled: false
  206. # if uncommented, all new vhost requests will be dumped into the given
  207. # channel, so opers can review them as they are sent in. ensure that you
  208. # have registered and restricted the channel appropriately before you
  209. # uncomment this.
  210. #channel: "#vhosts"
  211. # after a user's vhost has been approved or rejected, they need to wait
  212. # this long (starting from the time of their original request)
  213. # before they can request a new one.
  214. cooldown: 168h
  215. # channel options
  216. channels:
  217. # modes that are set when new channels are created
  218. # +n is no-external-messages and +t is op-only-topic
  219. # see /QUOTE HELP cmodes for more channel modes
  220. default-modes: +nt
  221. # how many channels can a client be in at once?
  222. max-channels-per-client: 100
  223. # channel registration - requires an account
  224. registration:
  225. # can users register new channels?
  226. enabled: true
  227. # how many channels can each account register?
  228. max-channels-per-account: 15
  229. # operator classes
  230. oper-classes:
  231. # local operator
  232. "local-oper":
  233. # title shown in WHOIS
  234. title: Local Operator
  235. # capability names
  236. capabilities:
  237. - "oper:local_kill"
  238. - "oper:local_ban"
  239. - "oper:local_unban"
  240. - "nofakelag"
  241. # network operator
  242. "network-oper":
  243. # title shown in WHOIS
  244. title: Network Operator
  245. # oper class this extends from
  246. extends: "local-oper"
  247. # capability names
  248. capabilities:
  249. - "oper:remote_kill"
  250. - "oper:remote_ban"
  251. - "oper:remote_unban"
  252. # server admin
  253. "server-admin":
  254. # title shown in WHOIS
  255. title: Server Admin
  256. # oper class this extends from
  257. extends: "local-oper"
  258. # capability names
  259. capabilities:
  260. - "oper:rehash"
  261. - "oper:die"
  262. - "accreg"
  263. - "sajoin"
  264. - "samode"
  265. - "vhosts"
  266. - "chanreg"
  267. # ircd operators
  268. opers:
  269. # operator named 'dan'
  270. dan:
  271. # which capabilities this oper has access to
  272. class: "server-admin"
  273. # custom whois line
  274. whois-line: is a cool dude
  275. # custom hostname
  276. vhost: "n"
  277. # modes are the modes to auto-set upon opering-up
  278. modes: +is acjknoqtux
  279. # password to login with /OPER command
  280. # generated using "oragono genpasswd"
  281. password: "$2a$04$LiytCxaY0lI.guDj2pBN4eLRD5cdM2OLDwqmGAgB6M2OPirbF5Jcu"
  282. # logging, takes inspiration from Insp
  283. logging:
  284. -
  285. # how to log these messages
  286. #
  287. # file log to given target filename
  288. # stdout log to stdout
  289. # stderr log to stderr
  290. # (you can specify multiple methods, e.g., to log to both stderr and a file)
  291. method: stderr
  292. # filename to log to, if file method is selected
  293. # filename: ircd.log
  294. # type(s) of logs to keep here. you can use - to exclude those types
  295. #
  296. # exclusions take precedent over inclusions, so if you exclude a type it will NEVER
  297. # be logged, even if you explicitly include it
  298. #
  299. # useful types include:
  300. # * everything (usually used with exclusing some types below)
  301. # server server startup, rehash, and shutdown events
  302. # accounts account registration and authentication
  303. # channels channel creation and operations
  304. # commands command calling and operations
  305. # opers oper actions, authentication, etc
  306. # services actions related to NickServ, ChanServ, etc.
  307. # internal unexpected runtime behavior, including potential bugs
  308. # userinput raw lines sent by users
  309. # useroutput raw lines sent to users
  310. type: "* -userinput -useroutput"
  311. # one of: debug info warn error
  312. level: info
  313. #-
  314. # # example of a file log that avoids logging IP addresses
  315. # method: file
  316. # filename: ircd.log
  317. # type: "* -userinput -useroutput -localconnect -localconnect-ip"
  318. # level: debug
  319. # debug options
  320. debug:
  321. # when enabled, oragono will attempt to recover from certain kinds of
  322. # client-triggered runtime errors that would normally crash the server.
  323. # this makes the server more resilient to DoS, but could result in incorrect
  324. # behavior. deployments that would prefer to "start from scratch", e.g., by
  325. # letting the process crash and auto-restarting it with systemd, can set
  326. # this to false.
  327. recover-from-errors: true
  328. # optionally expose a pprof http endpoint: https://golang.org/pkg/net/http/pprof/
  329. # it is strongly recommended that you don't expose this on a public interface;
  330. # if you need to access it remotely, you can use an SSH tunnel.
  331. # set to `null`, "", leave blank, or omit to disable
  332. # pprof-listener: "localhost:6060"
  333. # datastore configuration
  334. datastore:
  335. # path to the datastore
  336. path: ircd.db
  337. # if the database schema requires an upgrade, `autoupgrade` will attempt to
  338. # perform it automatically on startup. the database will be backed
  339. # up, and if the upgrade fails, the original database will be restored.
  340. autoupgrade: true
  341. # languages config
  342. languages:
  343. # whether to load languages
  344. enabled: true
  345. # default language to use for new clients
  346. # 'en' is the default English language in the code
  347. default: en
  348. # which directory contains our language files
  349. path: languages
  350. # limits - these need to be the same across the network
  351. limits:
  352. # nicklen is the max nick length allowed
  353. nicklen: 32
  354. # identlen is the max ident length allowed
  355. identlen: 20
  356. # channellen is the max channel length allowed
  357. channellen: 64
  358. # awaylen is the maximum length of an away message
  359. awaylen: 500
  360. # kicklen is the maximum length of a kick message
  361. kicklen: 1000
  362. # topiclen is the maximum length of a channel topic
  363. topiclen: 1000
  364. # maximum number of monitor entries a client can have
  365. monitor-entries: 100
  366. # whowas entries to store
  367. whowas-entries: 100
  368. # maximum length of channel lists (beI modes)
  369. chan-list-modes: 60
  370. # maximum length of IRC lines
  371. # this should generally be 1024-2048, and will only apply when negotiated by clients
  372. linelen:
  373. # tags section
  374. tags: 2048
  375. # rest of the message
  376. rest: 2048
  377. # fakelag: prevents clients from spamming commands too rapidly
  378. fakelag:
  379. # whether to enforce fakelag
  380. enabled: false
  381. # time unit for counting command rates
  382. window: 1s
  383. # clients can send this many commands without fakelag being imposed
  384. burst-limit: 5
  385. # once clients have exceeded their burst allowance, they can send only
  386. # this many commands per `window`:
  387. messages-per-window: 2
  388. # client status resets to the default state if they go this long without
  389. # sending any commands:
  390. cooldown: 2s
  391. # message history tracking, for the RESUME extension and possibly other uses in future
  392. history:
  393. # should we store messages for later playback?
  394. # the current implementation stores messages in RAM only; they do not persist
  395. # across server restarts. however, you should not enable this unless you understand
  396. # how it interacts with the GDPR and/or any data privacy laws that apply
  397. # in your country and the countries of your users.
  398. enabled: false
  399. # how many channel-specific events (messages, joins, parts) should be tracked per channel?
  400. channel-length: 256
  401. # how many direct messages and notices should be tracked per user?
  402. client-length: 64
  403. # number of messages to automatically play back on channel join (0 to disable):
  404. autoreplay-on-join: 0
  405. # maximum number of CHATHISTORY messages that can be
  406. # requested at once (0 disables support for CHATHISTORY)
  407. chathistory-maxmessages: 100