Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

oragono.yaml 14KB

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