Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

oragono.yaml 15KB

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