Advertisement
Guest User

services.conf

a guest
Aug 27th, 2016
138
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 41.39 KB | None | 0 0
  1. /*
  2. * Example configuration file for Services. After making the appropriate
  3. * changes to this file, place it in the Services conf directory (as
  4. * specified in the "configure" script, default /home/username/services/conf)
  5. * under the name "services.conf".
  6. *
  7. * The format of this file is fairly simple: three types of comments are supported:
  8. * - All text after a '#' on a line is ignored, as in shell scripting
  9. * - All text after '//' on a line is ignored, as in C++
  10. * - A block of text like this one is ignored, as in C
  11. *
  12. * Outside of comments, there are three structures: blocks, keys, and values.
  13. *
  14. * A block is a named container, which contains a number of key to value pairs
  15. * - you may think of this as an array.
  16. *
  17. * A block is created like so:
  18. * foobar
  19. * {
  20. * moo = "cow"
  21. * foo = bar
  22. * }
  23. *
  24. * Note that nameless blocks are allowed and are often used with comments to allow
  25. * easily commenting an entire block, for example:
  26. * #foobar
  27. * {
  28. * moo = "cow"
  29. * foo = bar
  30. * }
  31. * is an entirely commented block.
  32. *
  33. * Keys are case insensitive. Values depend on what key - generally, information is
  34. * given in the key comment. The quoting of values (and most other syntax) is quite
  35. * flexible, however, please do not forget to quote your strings:
  36. *
  37. * "This is a parameter string with spaces in it"
  38. *
  39. * If you need to include a double quote inside a quoted string, precede it
  40. * by a backslash:
  41. *
  42. * "This string has \"double quotes\" in it"
  43. *
  44. * Time parameters can be specified either as an integer representing a
  45. * number of seconds (e.g. "3600" = 1 hour), or as an integer with a unit
  46. * specifier: "s" = seconds, "m" = minutes, "h" = hours, "d" = days.
  47. * Combinations (such as "1h30m") are not permitted. Examples (all of which
  48. * represent the same length of time, one day):
  49. *
  50. * "86400", "86400s", "1440m", "24h", "1d"
  51. *
  52. * In the documentation for each directive, one of the following will be
  53. * included to indicate whether an option is required:
  54. *
  55. * [REQUIRED]
  56. * Indicates a directive which must be given. Without it, Services will
  57. * not start.
  58. *
  59. * [RECOMMENDED]
  60. * Indicates a directive which may be omitted, but omitting it may cause
  61. * undesirable side effects.
  62. *
  63. * [OPTIONAL]
  64. * Indicates a directive which is optional. If not given, the feature
  65. * will typically be disabled. If this is not the case, more
  66. * information will be given in the documentation.
  67. *
  68. * [DISCOURAGED]
  69. * Indicates a directive which may cause undesirable side effects if
  70. * specified.
  71. *
  72. * [DEPRECATED]
  73. * Indicates a directive which will disappear in a future version of
  74. * Services, usually because its functionality has been either
  75. * superseded by that of other directives or incorporated into the main
  76. * program.
  77. */
  78.  
  79. /*
  80. * [OPTIONAL] Defines
  81. *
  82. * You can define values to other values, which can be used to easily change
  83. * many values in the configuration. at once.
  84. */
  85.  
  86. /*
  87. * The services.host define is used in multiple different locations throughout the
  88. * configuration for services clients hostnames.
  89. */
  90. define
  91. {
  92. name = "Heaven to Hell IRC services"
  93. value = "irc.service.heaventohell.org"
  94. }
  95.  
  96. /*
  97. * [OPTIONAL] Additional Includes
  98. *
  99. * You can include additional configuration files here.
  100. * You may also include executable files, which will be executed and
  101. * the output from it will be included into your configuration.
  102. */
  103.  
  104. #include
  105. {
  106. type = "file"
  107. name = "some.conf"
  108. }
  109.  
  110. #include
  111. {
  112. type = "executable"
  113. name = "/usr/bin/wget -q -O - http://some.misconfigured.network.com/services.conf"
  114. }
  115.  
  116. /*
  117. * [REQUIRED] IRCd Config
  118. *
  119. * This section is used to set up Anope to connect to your IRC network.
  120. * This section can be included multiple times, and Anope will attempt to
  121. * connect to each server until it finally connects.
  122. *
  123. * Each uplink IRCd should have a corresponding configuration to allow Services
  124. * to link to it.
  125. *
  126. * An example configuration for InspIRCd that is compatible with the below uplink
  127. * and serverinfo configuration would look like:
  128. *
  129. * <link name="services.localhost.net"
  130. * ipaddr="127.0.0.1"
  131. * port="7000"
  132. * sendpass="mypassword"
  133. * recvpass="mypassword">
  134. * <uline server="services.localhost.net" silent="yes">
  135. * <bind address="127.0.0.1" port="7000" type="servers">
  136. *
  137. * An example configuration for UnrealIRCd that is compatible with the below uplink
  138. * and serverinfo configuration would look like:
  139. *
  140. * link services.localhost.net
  141. * {
  142. * username *;
  143. * hostname *;
  144. * bind-ip "127.0.0.1";
  145. * port 7000;
  146. * hub *;
  147. * password-connect "mypassword";
  148. * password-receive "mypassword";
  149. * class servers;
  150. * };
  151. * ulines { services.localhost.net; };
  152. * listen 127.0.0.1:7000;
  153. */
  154. uplink
  155. {
  156. /*
  157. * The IP or hostname of the IRC server you wish to connect Services to.
  158. * Usually, you will want to connect Services over 127.0.0.1 (aka localhost).
  159. *
  160. * NOTE: On some shell providers, this will not be an option.
  161. */
  162. host = "91.121.222.176"
  163.  
  164. /*
  165. * Enable if Services should connect using IPv6.
  166. */
  167. ipv6 = no
  168.  
  169. /*
  170. * Enable if Services should connect using SSL.
  171. * You must have an SSL module loaded for this to work.
  172. */
  173. ssl = no
  174.  
  175. /*
  176. * The port to connect to.
  177. * The IRCd *MUST* be configured to listen on this port, and to accept
  178. * server connections.
  179. *
  180. * Refer to your IRCd documentation for how this is to be done.
  181. */
  182. port = 4004
  183.  
  184. /*
  185. * The password to send to the IRC server for authentication.
  186. * This must match the link block on your IRCd.
  187. *
  188. * Refer to your IRCd documentation for more information on link blocks.
  189. */
  190. password = "Mpxa87"
  191. password-connect = "Mpxa87"
  192. password-receive = "Mpxa87"
  193. }
  194.  
  195. /*
  196. * [REQUIRED] Server Information
  197. *
  198. * This section contains information about the Services server.
  199. */
  200. serverinfo
  201. {
  202. /*
  203. * The hostname that Services will be seen as, it must have no conflicts with any
  204. * other server names on the rest of your IRC network. Note that it does not have
  205. * to be an existing hostname, just one that isn't on your network already.
  206. */
  207. name = "irc.service.heaventohell.org"
  208.  
  209. /*
  210. * The text which should appear as the server's information in /whois and similar
  211. * queries.
  212. */
  213. description = "Services for IRC Networks"
  214.  
  215. /*
  216. * The local address that Services will bind to before connecting to the remote
  217. * server. This may be useful for multihomed hosts. If omitted, Services will let
  218. * the Operating System choose the local address. This directive is optional.
  219. *
  220. * If you don't know what this means or don't need to use it, just leave this
  221. * directive commented out.
  222. */
  223. localhost = "/"
  224.  
  225. /*
  226. * What Server ID to use for this connection?
  227. * Note: This should *ONLY* be used for TS6/P10 IRCds. Refer to your IRCd documentation
  228. * to see if this is needed.
  229. */
  230. #id = "00A"
  231.  
  232. /*
  233. * The filename containing the Services process ID. The path is relative to the
  234. * services root directory.
  235. */
  236. pid = "data/services.pid"
  237.  
  238. /*
  239. * The filename containing the Message of the Day. The path is relative to the
  240. * services root directory.
  241. */
  242. motd = "conf/services.motd"
  243. }
  244.  
  245. /*
  246. * [REQUIRED] Protocol module
  247. *
  248. * This directive tells Anope which IRCd Protocol to speak when connecting.
  249. * You MUST modify this to match the IRCd you run.
  250. *
  251. * Supported:
  252. * - bahamut
  253. * - charybdis
  254. * - hybrid
  255. * - inspircd12
  256. * - inspircd20
  257. * - ngircd
  258. * - plexus
  259. * - ratbox
  260. * - unreal
  261. */
  262. module
  263. {
  264. name = "unreal"
  265.  
  266. /*
  267. * Some protocol modules can enforce mode locks server-side. This reduces the spam caused by
  268. * services immediately reversing mode changes for locked modes.
  269. *
  270. * If the protocol module you have loaded does not support this, this setting will have no effect.
  271. */
  272. use_server_side_mlock = yes
  273.  
  274. /*
  275. * Some protocol modules can enforce topic locks server-side. This reduces the spam caused by
  276. * services immediately reversing topic changes.
  277. *
  278. * If the protocol module you have loaded does not support this, this setting will have no effect.
  279. */
  280. use_server_side_topiclock = yes
  281. }
  282.  
  283. /*
  284. * [REQUIRED] Network Information
  285. *
  286. * This section contains information about the IRC network that Services will be
  287. * connecting to.
  288. */
  289. networkinfo
  290. {
  291. /*
  292. * This is the name of the network that Services will be running on.
  293. */
  294. networkname = "HellNet"
  295.  
  296. /*
  297. * Set this to the maximum allowed nick length on your network.
  298. * Be sure to set this correctly, as setting this wrong can result in
  299. * Services being disconnected from the network.
  300. */
  301. nicklen = 31
  302.  
  303. /* Set this to the maximum allowed ident length on your network.
  304. * Be sure to set this correctly, as setting this wrong can result in
  305. * Services being disconnected from the network.
  306. */
  307. userlen = 10
  308.  
  309. /* Set this to the maximum allowed hostname length on your network.
  310. * Be sure to set this correctly, as setting this wrong can result in
  311. * Services being disconnected from the network.
  312. */
  313. hostlen = 64
  314.  
  315. /* Set this to the maximum allowed channel length on your network.
  316. */
  317. chanlen = 32
  318.  
  319. /* The maximum number of list modes settable on a channel (such as b, e, I).
  320. * Comment out or set to 0 to disable.
  321. */
  322. modelistsize = 100
  323.  
  324. /*
  325. * Characters allowed in nicknames. This always includes the characters described
  326. * in RFC1459, and so does not need to be set for normal behavior. Changing this to
  327. * include characters your IRCd doesn't support will cause your IRCd and/or Services
  328. * to break. Multibyte characters are not supported, nor are escape sequences.
  329. *
  330. * It is recommended you DON'T change this.
  331. */
  332. #nick_chars = ""
  333.  
  334. /*
  335. * The characters allowed in hostnames. This is used for validating hostnames given
  336. * to services, such as BotServ bot hostnames and user vhosts. Changing this is not
  337. * recommended unless you know for sure your IRCd supports whatever characters you are
  338. * wanting to use. Telling services to set a vHost containing characters your IRCd
  339. * disallows could potentially break the IRCd and/or Services.
  340. *
  341. * It is recommended you DON'T change this.
  342. */
  343. vhost_chars = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789.-"
  344.  
  345. /*
  346. * If set to true, allows vHosts to not contain dots (.).
  347. * Newer IRCds generally do not have a problem with this, but the same warning as
  348. * vhost_chars applies.
  349. *
  350. * It is recommended you DON'T change this.
  351. */
  352. allow_undotted_vhosts = false
  353.  
  354. /*
  355. * The characters that are not allowed to be at the very beginning or very ending
  356. * of a vHost. The same warning as vhost_chars applies.
  357. *
  358. * It is recommended you DON'T change this.
  359. */
  360. disallow_start_or_end = ".-"
  361. }
  362.  
  363. /*
  364. * [REQUIRED] Services Options
  365. *
  366. * This section contains various options which determine how Services will operate.
  367. */
  368. options
  369. {
  370. /*
  371. * On Linux/UNIX systems Anope can setuid and setgid to this user and group
  372. * after starting up. This is useful if Anope has to bind to privileged ports
  373. */
  374. #user = "anope"
  375. #group = "anope"
  376.  
  377. /*
  378. * The case mapping used by services. This must be set to a valid locale name
  379. * installed on your machine. Services use this case map to compare, with
  380. * case insensitivity, things such as nick names, channel names, etc.
  381. *
  382. * We provide two special casemaps shipped with Anope, ascii and rfc1459.
  383. *
  384. * This value should be set to what your IRCd uses, which is probably rfc1459,
  385. * however Anope has always used ascii for comparison, so the default is ascii.
  386. *
  387. * Changing this value once set is not recommended.
  388. */
  389. casemap = "ascii"
  390.  
  391. /*
  392. * This key is used to initiate the random number generator. This number
  393. * MUST be random as you want your passcodes to be random. Don't give this
  394. * key to anyone! Keep it private!
  395. *
  396. * NOTE: If you don't uncomment this or keep the default values, any talented
  397. * programmer would be able to easily "guess" random strings used to mask
  398. * information. Be safe, and come up with a 7-digit number.
  399. *
  400. * This directive is optional, but highly recommended.
  401. */
  402. #seed = 9866235
  403.  
  404. /*
  405. * If set, Services will perform more stringent checks on passwords. If this
  406. * isn't set, Services will only disallow a password if it is the same as the
  407. * entity (nickname name) with which it is associated. When set, however,
  408. * Services will also check that the password is at least five
  409. * characters long, and in the future will probably check other things
  410. * as well.
  411. *
  412. * This directive is optional, but recommended.
  413. */
  414. strictpasswords = yes
  415.  
  416. /*
  417. * Sets the number of invalid password tries before Services removes a user
  418. * from the network. If a user enters a number of invalid passwords equal to
  419. * the given amount for any Services function or combination of functions
  420. * during a single IRC session (subject to badpasstimeout, below), Services
  421. * will issues a /KILL for the user. If not given, Services will ignore
  422. * failed password attempts (though they will be logged in any case).
  423. *
  424. * This directive is optional, but recommended.
  425. */
  426. badpasslimit = 5
  427.  
  428. /*
  429. * Sets the time after which invalid passwords are forgotten about. If a user
  430. * does not enter any incorrect passwords in this amount of time, the incorrect
  431. * password count will reset to zero. If not given, the timeout will be
  432. * disabled, and the incorrect password count will never be reset until the user
  433. * disconnects.
  434. *
  435. * This directive is optional.
  436. */
  437. badpasstimeout = 1h
  438.  
  439. /*
  440. * Sets the delay between automatic database updates.
  441. */
  442. updatetimeout = 5m
  443.  
  444. /*
  445. * Sets the delay between checks for expired nicknames and channels.
  446. */
  447. expiretimeout = 30m
  448.  
  449. /*
  450. * Sets the timeout period for reading from the uplink.
  451. */
  452. readtimeout = 5s
  453.  
  454. /*
  455. * Sets the interval between sending warning messages for program errors via
  456. * WALLOPS/GLOBOPS.
  457. */
  458. warningtimeout = 4h
  459.  
  460. /*
  461. * Sets the (maximum) frequency at which the timeout list is checked. This,
  462. * combined with readtimeout above, determines how accurately timed events,
  463. * such as nick kills, occur; it also determines how much CPU time Services
  464. * will use doing this. Higher values will cause less accurate timing but
  465. * less CPU usage.
  466. *
  467. * Note that this value is not an absolute limit on the period between
  468. * checks of the timeout list; the previous may be as great as readtimeout
  469. * (above) during periods of inactivity.
  470. *
  471. * If this directive is not given, it will default to 0.
  472. */
  473. timeoutcheck = 3s
  474.  
  475. /*
  476. * If set, this will allow users to let Services send PRIVMSGs to them
  477. * instead of NOTICEs. Also see the "msg" option of nickserv:defaults,
  478. * which also toggles the default communication (PRIVMSG or NOTICE) to
  479. * use for unregistered users.
  480. *
  481. * This is a feature that is against the IRC RFC and should be used ONLY
  482. * if absolutely necessary.
  483. *
  484. * This directive is optional, and not recommended.
  485. */
  486. #useprivmsg = yes
  487.  
  488. /*
  489. * If set, will force Services to only respond to PRIVMSGs addresses to
  490. * Nick@ServerName - e.g. NickServ@localhost.net. This should be used in
  491. * conjunction with IRCd aliases. This directive is optional.
  492. *
  493. * This option will have no effect on some IRCds, such as TS6 IRCds.
  494. */
  495. #usestrictprivmsg = yes
  496.  
  497. /*
  498. * If set, Services will only show /stats o to IRC Operators. This directive
  499. * is optional.
  500. */
  501. #hidestatso = yes
  502.  
  503. /*
  504. * A space-separated list of ulined servers on your network, it is assumed that
  505. * the servers in this list are allowed to set channel modes and Services will
  506. * not attempt to reverse their mode changes.
  507. *
  508. * WARNING: Do NOT put your normal IRC user servers in this directive.
  509. *
  510. * This directive is optional.
  511. */
  512. #ulineservers = "stats.your.network"
  513.  
  514. /*
  515. * How long to wait between connection retries with the uplink(s).
  516. */
  517. retrywait = 60s
  518.  
  519. /*
  520. * If set, Services will hide commands that users don't have the privilege to execute
  521. * from HELP output.
  522. */
  523. hideprivilegedcommands = yes
  524.  
  525. /*
  526. * If set, Services will hide commands that users can't execute because they are not
  527. * logged in from HELP output.
  528. */
  529. hideregisteredcommands = yes
  530.  
  531. /* The regex engine to use, as provided by the regex modules.
  532. * Leave commented to disable regex matching.
  533. *
  534. * Note for this to work the regex module providing the regex engine must be loaded.
  535. */
  536. regexengine = "regex/pcre"
  537.  
  538. /*
  539. * A list of languages to load on startup that will be available in /nickserv set language.
  540. * Useful if you translate Anope to your language. (Explained further in docs/LANGUAGE).
  541. * Note that english should not be listed here because it is the base language.
  542. *
  543. * Removing .UTF-8 will instead use the default encoding for the language, eg. iso-8859-1 for western European languages.
  544. */
  545. languages = "ca_ES.UTF-8 de_DE.UTF-8 el_GR.UTF-8 es_ES.UTF-8 fr_FR.UTF-8 hu_HU.UTF-8 it_IT.UTF-8 nl_NL.UTF-8 pl_PL.UTF-8 pt_PT.UTF-8 ru_RU.UTF-8 tr_TR.UTF-8"
  546.  
  547. /*
  548. * Default language that non- and newly-registered nicks will receive messages in.
  549. * Set to "en" to enable English. Defaults to the language the system uses.
  550. */
  551. #defaultlanguage = "es_ES.UTF-8"
  552. }
  553.  
  554. /*
  555. * [OPTIONAL] BotServ
  556. *
  557. * Includes botserv.conf, which is necessary for BotServ functionality.
  558. *
  559. * Remove this block to disable BotServ.
  560. */
  561. include
  562. {
  563. type = "file"
  564. name = "botserv.conf"
  565. }
  566.  
  567. /*
  568. * [RECOMMENDED] ChanServ
  569. *
  570. * Includes chanserv.conf, which is necessary for ChanServ functionality.
  571. *
  572. * Remove this block to disable ChanServ.
  573. */
  574. include
  575. {
  576. type = "file"
  577. name = "chanserv.conf"
  578. }
  579.  
  580. /*
  581. * [RECOMMENDED] Global
  582. *
  583. * Includes global.conf, which is necessary for Global functionality.
  584. *
  585. * Remove this block to disable Global.
  586. */
  587. include
  588. {
  589. type = "file"
  590. name = "global.conf"
  591. }
  592.  
  593. /*
  594. * [OPTIONAL] HostServ
  595. *
  596. * Includes hostserv.conf, which is necessary for HostServ functionality.
  597. *
  598. * Remove this block to disable HostServ.
  599. */
  600. include
  601. {
  602. type = "file"
  603. name = "hostserv.conf"
  604. }
  605.  
  606. /*
  607. * [OPTIONAL] MemoServ
  608. *
  609. * Includes memoserv.conf, which is necessary for MemoServ functionality.
  610. *
  611. * Remove this block to disable MemoServ.
  612. */
  613. include
  614. {
  615. type = "file"
  616. name = "memoserv.conf"
  617. }
  618.  
  619. /*
  620. * [OPTIONAL] NickServ
  621. *
  622. * Includes nickserv.conf, which is necessary for NickServ functionality.
  623. *
  624. * Remove this block to disable NickServ.
  625. */
  626. include
  627. {
  628. type = "file"
  629. name = "nickserv.conf"
  630. }
  631.  
  632. /*
  633. * [RECOMMENDED] OperServ
  634. *
  635. * Includes operserv.conf, which is necessary for OperServ functionality.
  636. *
  637. * Remove this block to disable OperServ.
  638. */
  639. include
  640. {
  641. type = "file"
  642. name = "operserv.conf"
  643. }
  644.  
  645. /*
  646. * [RECOMMENDED] Logging Configuration
  647. *
  648. * This section is used for configuring what is logged and where it is logged to.
  649. * You may have multiple log blocks if you wish. Remember to properly secure any
  650. * channels you choose to have Anope log to!
  651. */
  652. log
  653. {
  654. /*
  655. * Target(s) to log to, which may be one of the following:
  656. * - a channel name
  657. * - a filename
  658. * - globops
  659. */
  660. target = "services.log"
  661.  
  662. /* Log to both services.log and the channel #services
  663. *
  664. * Note that some older IRCds, such as Ratbox, require services to be in the
  665. * log channel to be able to message it. To do this, configure service:channels to
  666. * join your logging channel.
  667. */
  668. #target = "services.log #services"
  669.  
  670. /*
  671. * The source(s) to only accept log messages from. Leave commented to allow all sources.
  672. * This can be a users name, a channel name, one of our clients (eg, OperServ), or a server name.
  673. */
  674. #source = ""
  675.  
  676. /*
  677. * The bot used to log generic messages which have no predefined sender if there
  678. * is a channel in the target directive.
  679. */
  680. bot = "Global"
  681.  
  682. /*
  683. * The number of days to keep logfiles, only useful if you are logging to a file.
  684. * Set to 0 to never delete old logfiles.
  685. *
  686. * Note that Anope must run 24 hours a day for this feature to work correctly.
  687. */
  688. logage = 7
  689.  
  690. /*
  691. * What types of log messages should be logged by this block. There are nine general categories:
  692. *
  693. * admin - Execution of admin commands (OperServ, etc).
  694. * override - A services operator using their powers to execute a command they couldn't normally.
  695. * commands - Execution of general commands.
  696. * servers - Server actions, linking, squitting, etc.
  697. * channels - Actions in channels such as joins, parts, kicks, etc.
  698. * users - User actions such as connecting, disconnecting, changing name, etc.
  699. * other - All other messages without a category.
  700. * rawio - Logs raw input and output from services
  701. * debug - Debug messages (log files can become VERY large from this).
  702. *
  703. * These options determine what messages from the categories should be logged. Wildcards are accepted, and
  704. * you can also negate values with a ~. For example, "~operserv/akill operserv/*" would log all operserv
  705. * messages except for operserv/akill. Note that processing stops at the first matching option, which
  706. * means "* ~operserv/*" would log everything because * matches everything.
  707. *
  708. * Valid admin, override, and command options are:
  709. * pesudo-serv/commandname (eg, operserv/akill, chanserv/set)
  710. *
  711. * Valid server options are:
  712. * connect, quit, sync, squit
  713. *
  714. * Valid channel options are:
  715. * create, destroy, join, part, kick, leave, mode
  716. *
  717. * Valid user options are:
  718. * connect, disconnect, quit, nick, ident, host, mode, maxusers, oper, away
  719. *
  720. * Rawio and debug are simple yes/no answers, there are no types for them.
  721. *
  722. * Note that modules may add their own values to these options.
  723. */
  724. admin = "*"
  725. override = "chanserv/* nickserv/* memoserv/set ~botserv/set botserv/*"
  726. commands = "~operserv/* *"
  727. servers = "*"
  728. #channels = "~mode *"
  729. users = "connect disconnect nick"
  730. other = "*"
  731. rawio = no
  732. debug = no
  733. }
  734.  
  735. /*
  736. * A log block to globops some useful things.
  737. */
  738. log
  739. {
  740. target = "globops"
  741. admin = "global/* operserv/mode operserv/kick operserv/akill operserv/s*line operserv/noop operserv/jupe operserv/oline operserv/set operserv/svsnick operserv/svsjoin operserv/svspart nickserv/getpass */drop"
  742. servers = "squit"
  743. users = "oper"
  744. other = "expire/* bados akill/*"
  745. }
  746.  
  747. /*
  748. * [RECOMMENDED] Oper Access Config
  749. *
  750. * This section is used to set up staff access to restricted oper only commands.
  751. * You may define groups of commands and privileges, as well as who may use them.
  752. *
  753. * This block is recommended, as without it you will be unable to access most oper commands.
  754. * It replaces the old ServicesRoot directive amongst others.
  755. *
  756. * The command names below are defaults and are configured in the *serv.conf's. If you configure
  757. * additional commands with permissions, such as commands from third party modules, the permissions
  758. * must be included in the opertype block before the command can be used.
  759. *
  760. * Available privileges:
  761. * botserv/administration - Can view and assign private BotServ bots
  762. * botserv/fantasy - Can use fantasy commands without the FANTASIA privilege
  763. * chanserv/administration - Can modify the settings of any channel (including changing of the owner!)
  764. * chanserv/access/list - Can view channel access and akick lists, but not modify them
  765. * chanserv/access/modify - Can modify channel access and akick lists, and use /chanserv enforce
  766. * chanserv/auspex - Can see any information with /chanserv info
  767. * chanserv/no-register-limit - May register an unlimited number of channels and nicknames
  768. * chanserv/kick - Can kick and ban users from channels through ChanServ
  769. * memoserv/info - Can see any information with /memoserv info
  770. * memoserv/set-limit - Can set the limit of max stored memos on any user and channel
  771. * memoserv/no-limit - Can send memos through limits and throttles
  772. * nickserv/access - Can modify other users access and certificate lists
  773. * nickserv/alist - Can see the channel access list of other users
  774. * nickserv/auspex - Can see any information with /nickserv info
  775. * nickserv/confirm - Can confirm other users nicknames
  776. * nickserv/drop - Can drop other users nicks
  777. * operserv/config - Can modify services's configuration
  778. * operserv/oper/modify - Can add and remove operators with at most the same privileges
  779. * protected - Can not be kicked from channels by Services
  780. *
  781. * Available commands:
  782. * botserv/bot/del botserv/bot/add botserv/bot/change botserv/set/private
  783. * botserv/set/nobot
  784. *
  785. * chanserv/drop chanserv/getkey chanserv/invite
  786. * chanserv/list chanserv/suspend chanserv/topic
  787. *
  788. * chanserv/saset/bantype chanserv/saset/description chanserv/saset/email chanserv/saset/keepmodes
  789. * chanserv/saset/founder chanserv/saset/keeptopic chanserv/saset/restricted
  790. * chanserv/saset/peace chanserv/saset/persist chanserv/saset/private
  791. * chanserv/saset/secure chanserv/saset/securefounder chanserv/saset/secureops
  792. * chanserv/saset/signkick chanserv/saset/successor chanserv/saset/topiclock
  793. * chanserv/saset/url chanserv/saset/noexpire chanserv/saset/autoop
  794. *
  795. * memoserv/sendall memoserv/staff
  796. *
  797. * nickserv/getpass nickserv/getemail nickserv/suspend nickserv/ajoin
  798. * nickserv/list
  799. *
  800. * nickserv/saset/autoop nickserv/saset/email nickserv/saset/greet nickserv/saset/password
  801. * nickserv/saset/display nickserv/saset/kill nickserv/saset/language nickserv/saset/message
  802. * nickserv/saset/private nickserv/saset/secure nickserv/saset/url nickserv/saset/noexpire
  803. * nickserv/saset/keepmodes
  804. *
  805. * hostserv/set hostserv/del hostserv/list
  806. *
  807. * global/global
  808. *
  809. * operserv/news operserv/stats operserv/kick operserv/exception operserv/seen
  810. * operserv/mode operserv/session operserv/modinfo operserv/ignore operserv/chanlist
  811. * operserv/chankill operserv/akill operserv/sqline operserv/snline operserv/userlist
  812. * operserv/oper operserv/config operserv/umode operserv/logsearch
  813. * operserv/modload operserv/jupe operserv/set operserv/noop
  814. * operserv/quit operserv/update operserv/reload operserv/restart
  815. * operserv/shutdown operserv/svs operserv/oline operserv/kill
  816. *
  817. * Firstly, we define 'opertypes' which are named whatever we want ('Network Administrator', etc).
  818. * These can contain commands for oper-only strings (see above) which grants access to that specific command,
  819. * and privileges (which grant access to more general permissions for the named area).
  820. * Wildcard entries are permitted for both, e.g. 'commands = "operserv/*"' for all OperServ commands.
  821. *
  822. * Below are some default example types, but this is by no means exhaustive,
  823. * and it is recommended that you configure them to your needs.
  824. */
  825.  
  826. opertype
  827. {
  828. /* The name of this opertype */
  829. name = "Helper"
  830.  
  831. /* What commands (see above) this opertype has */
  832. commands = "hostserv/*"
  833. }
  834.  
  835. opertype
  836. {
  837. /* The name of this opertype */
  838. name = "Services Operator"
  839.  
  840. /* What opertype(s) this inherits from. Seperate with a comma. */
  841. inherits = "Helper, Another Helper"
  842.  
  843. /* What commands (see above) this opertype may use */
  844. commands = "chanserv/list chanserv/suspend chanserv/topic memoserv/staff nickserv/list nickserv/suspend operserv/mode operserv/chankill operserv/akill operserv/session operserv/modinfo operserv/sqline operserv/oper operserv/kick operserv/ignore operserv/snline"
  845.  
  846. /* What privs (see above) this opertype has */
  847. privs = "chanserv/auspex chanserv/no-register-limit memoserv/* nickserv/auspex nickserv/confirm"
  848.  
  849. /*
  850. * Modes to be set on users when they identify to accounts linked to this opertype.
  851. *
  852. * This can be used to automatically oper users who identify for services operator accounts, and is
  853. * useful for setting modes such as Plexus's user mode +N.
  854. *
  855. * Note that some IRCds, such as InspIRCd, do not allow directly setting +o, and this will not work.
  856. */
  857. #modes = "+o"
  858. }
  859.  
  860. opertype
  861. {
  862. name = "Services Administrator"
  863.  
  864. inherits = "Services Operator"
  865.  
  866. commands = "botserv/* chanserv/access/list chanserv/drop chanserv/getkey chanserv/saset/noexpire memoserv/sendall nickserv/saset/* nickserv/getemail operserv/news operserv/jupe operserv/svs operserv/stats operserv/oline operserv/noop operserv/forbid global/*"
  867.  
  868. privs = "*"
  869. }
  870.  
  871. opertype
  872. {
  873. name = "Services Root"
  874.  
  875. commands = "*"
  876.  
  877. privs = "*"
  878. }
  879.  
  880. /*
  881. * After defining different types of operators in the above opertype section, we now define who is in these groups
  882. * through 'oper' blocks, similar to ircd access.
  883. *
  884. * The default is to comment these out (so NOBODY will have Services access).
  885. * You probably want to add yourself and a few other people at minimum.
  886. *
  887. * As with all permissions, make sure to only give trustworthy people access to Services.
  888. */
  889.  
  890. oper
  891. {
  892. /* The nickname of this services oper */
  893. name = "oper"
  894.  
  895. /* The opertype this person will have */
  896. type = "Services Root"
  897.  
  898. /* If set, the user must be an oper on the IRCd to gain their Services
  899. * oper privileges.
  900. */
  901. require_oper = yes
  902.  
  903. /* An optional password. If defined the user must login using "/msg OperServ LOGIN" first */
  904. password = "Tr66zf89qxdf"
  905.  
  906. /* An optional SSL fingerprint. If defined, it's required to be able to use this opertype. */
  907. #certfp = "ed3383b3f7d74e89433ddaa4a6e5b2d7"
  908.  
  909. /* An optional list of user@host masks. If defined the user must be connected from one of them */
  910. #host = "*@*.anope.org ident@*"
  911.  
  912. /* An optional vHost to set on users who identify for this oper block.
  913. * This will override HostServ vHosts, and may not be available on all IRCds
  914. */
  915. #vhost = "oper.mynet"
  916. }
  917.  
  918. #oper
  919. {
  920. name = "nick2"
  921. type = "Services Administrator"
  922. }
  923.  
  924. #oper
  925. {
  926. name = "nick3"
  927. type = "Helper"
  928. }
  929.  
  930. /*
  931. * [OPTIONAL] Mail Config
  932. *
  933. * This section contains settings related to the use of e-mail from Services.
  934. * If the usemail directive is set to yes, unless specified otherwise, all other
  935. * directives are required.
  936. *
  937. * NOTE: Users can find the IP of the machine services is running on by examining
  938. * mail headers. If you do not want your IP known, you should set up a mail relay
  939. * to strip the relevant headers.
  940. */
  941. mail
  942. {
  943. /*
  944. * If set, this option enables the mail commands in Services. You may choose
  945. * to disable it if you have no Sendmail-compatible mailer installed. Whilst
  946. * this directive (and entire block) is optional, it is required if
  947. * nickserv:registration is set to yes.
  948. */
  949. usemail = yes
  950.  
  951. /*
  952. * This is the command-line that will be used to call the mailer to send an
  953. * e-mail. It must be called with all the parameters needed to make it
  954. * scan the mail input to find the mail recipient; consult your mailer
  955. * documentation.
  956. *
  957. * Postfix users must use the compatible sendmail utility provided with
  958. * it. This one usually needs no parameters on the command-line. Most
  959. * sendmail applications (or replacements of it) require the -t option
  960. * to be used.
  961. */
  962. sendmailpath = "/usr/sbin/sendmail -t"
  963.  
  964. /*
  965. * This is the e-mail address from which all the e-mails are to be sent from.
  966. * It should really exist.
  967. */
  968. sendfrom = "avallach.irc@gmail.com"
  969.  
  970. /*
  971. * This controls the minimum amount of time a user must wait before sending
  972. * another e-mail after they have sent one. It also controls the minimum time
  973. * a user must wait before they can receive another e-mail.
  974. *
  975. * This feature prevents users from being mail bombed using Services and
  976. * it is highly recommended that it be used.
  977. *
  978. * This directive is optional, but highly recommended.
  979. */
  980. delay = 5m
  981.  
  982. /*
  983. * If set, Services will not attempt to put quotes around the TO: fields
  984. * in e-mails.
  985. *
  986. * This directive is optional, and as far as we know, it's only needed
  987. * if you are using ESMTP or QMail to send out e-mails.
  988. */
  989. #dontquoteaddresses = yes
  990.  
  991. /*
  992. * The subject and message of emails sent to users when they register accounts.
  993. */
  994. registration_subject = "Nickname registration for %n"
  995. registration_message = "Hi,
  996.  
  997. You have requested to register the nickname %n on %N.
  998. Please type \" /msg NickServ CONFIRM %c \" to complete registration.
  999.  
  1000. If you don't know why this mail was sent to you, please ignore it silently.
  1001.  
  1002. %N administrators."
  1003.  
  1004. /*
  1005. * The subject and message of emails sent to users when they request a new password.
  1006. */
  1007. reset_subject = "Reset password request for %n"
  1008. reset_message = "Hi,
  1009.  
  1010. You have requested to have the password for %n reset.
  1011. To reset your password, type \" /msg NickServ CONFIRM %n %c \"
  1012.  
  1013. If you don't know why this mail was sent to you, please ignore it silently.
  1014.  
  1015. %N administrators."
  1016.  
  1017. /*
  1018. * The subject and message of emails sent to users when they request a new email address.
  1019. */
  1020. emailchange_subject = "Email confirmation"
  1021. emailchange_message = "Hi,
  1022.  
  1023. You have requested to change your email address from %e to %E.
  1024. Please type \" /msg NickServ CONFIRM %c \" to confirm this change.
  1025.  
  1026. If you don't know why this mail was sent to you, please ignore it silently.
  1027.  
  1028. %N administrators."
  1029.  
  1030. /*
  1031. * The subject and message of emails sent to users when they receive a new memo.
  1032. */
  1033. memo_subject = "New memo"
  1034. memo_message = "Hi %n,
  1035.  
  1036. You've just received a new memo from %s. This is memo number %d.
  1037.  
  1038. Memo text:
  1039.  
  1040. %t"
  1041. }
  1042.  
  1043. /*
  1044. * [REQUIRED] Database configuration.
  1045. *
  1046. * This section is used to configure databases used by Anope.
  1047. * You should at least load one database method, otherwise any data you
  1048. * have will not be stored!
  1049. */
  1050.  
  1051. /*
  1052. * [DEPRECATED] db_old
  1053. *
  1054. * This is the old binary database format from late Anope 1.7.x, Anope 1.8.x, and
  1055. * early Anope 1.9.x. This module only loads these databases, and will NOT save them.
  1056. * You should only use this to upgrade old databases to a newer database format by loading
  1057. * other database modules in addition to this one, which will be used when saving databases.
  1058. */
  1059. #module
  1060. {
  1061. name = "db_old"
  1062.  
  1063. /*
  1064. * This is the encryption type used by the databases. This must be set correctly or
  1065. * your passwords will not work. Valid options are: md5, oldmd5, sha1, and plain.
  1066. * You must also be sure to load the correct encryption module below in the Encryption
  1067. * Modules section so that your passwords work.
  1068. */
  1069. #hash = "md5"
  1070. }
  1071.  
  1072. /*
  1073. * [RECOMMENDED] db_flatfile
  1074. *
  1075. * This is the default flatfile database format.
  1076. */
  1077. #module
  1078. {
  1079. name = "db_flatfile"
  1080.  
  1081. /*
  1082. * The database name db_flatfile should use
  1083. */
  1084. database = "anope.db"
  1085.  
  1086. /*
  1087. * Sets the number of days backups of databases are kept. If you don't give it,
  1088. * or if you set it to 0, Services won't backup the databases.
  1089. *
  1090. * NOTE: Services must run 24 hours a day for this feature to work.
  1091. *
  1092. * This directive is optional, but recommended.
  1093. */
  1094. keepbackups = 3
  1095.  
  1096. /*
  1097. * Allows Services to continue file write operations (i.e. database saving)
  1098. * even if the original file cannot be backed up. Enabling this option may
  1099. * allow Services to continue operation under conditions where it might
  1100. * otherwise fail, such as a nearly-full disk.
  1101. *
  1102. * NOTE: Enabling this option can cause irrecoverable data loss under some
  1103. * conditions, so make CERTAIN you know what you're doing when you enable it!
  1104. *
  1105. * This directive is optional, and you are discouraged against enabling it.
  1106. */
  1107. #nobackupokay = yes
  1108.  
  1109. /*
  1110. * If enabled, services will fork a child process to save databases.
  1111. *
  1112. * This is only useful with very large databases, with hundreds
  1113. * of thousands of objects, that have a noticeable delay from
  1114. * writing databases.
  1115. *
  1116. * If your database is large enough cause a noticeable delay when
  1117. * saving you should consider a more powerful alternative such
  1118. * as db_sql or db_redis, which incrementally update their
  1119. * databases asynchronously in real time.
  1120. */
  1121. fork = no
  1122. }
  1123.  
  1124. /*
  1125. * db_sql and db_sql_live
  1126. *
  1127. * db_sql module allows saving and loading databases using one of the SQL engines.
  1128. * This module loads the databases once on startup, then incrementally updates
  1129. * objects in the database as they are changed within Anope in real time. Changes
  1130. * to the SQL tables not done by Anope will have no effect and will be overwritten.
  1131. *
  1132. * db_sql_live module allows saving and loading databases using one of the SQL engines.
  1133. * This module reads and writes to SQL in real time. Changes to the SQL tables
  1134. * will be immediately reflected into Anope. This module should not be loaded
  1135. * in conjunction with db_sql.
  1136. *
  1137. */
  1138. module
  1139. {
  1140. name = "db_sql"
  1141. #name = "db_sql_live"
  1142.  
  1143. /*
  1144. * The SQL service db_sql(_live) should use, these are configured in modules.conf.
  1145. * For MySQL, this should probably be mysql/main.
  1146. */
  1147. engine = "sqlite/main"
  1148.  
  1149. /*
  1150. * An optional prefix to prepended to the name of each created table.
  1151. * Do not use the same prefix for other programs.
  1152. */
  1153. #prefix = "anope_db_"
  1154.  
  1155. /* Whether or not to import data from another database module in to SQL on startup.
  1156. * If you enable this, be sure that the database services is configured to use is
  1157. * empty and that another database module to import from is loaded before db_sql.
  1158. * After you enable this and do a database import you should disable it for
  1159. * subsequent restarts.
  1160. *
  1161. * Note that you can not import databases using db_sql_live. If you want to import
  1162. * databases and use db_sql_live you should import them using db_sql, then shut down
  1163. * and start services with db_sql_live.
  1164. */
  1165. import = false
  1166. }
  1167.  
  1168. /*
  1169. * db_redis.
  1170. *
  1171. * This module allows using Redis (http://redis.io) as a database backend.
  1172. * This module requires that m_redis is loaded and configured properly.
  1173. *
  1174. * Redis 2.8 supports keyspace notifications which allows Redis to push notifications
  1175. * to Anope about outside modifications to the database. This module supports this and
  1176. * will internally reflect any changes made to the database immediately once notified.
  1177. * See docs/REDIS for more information regarding this.
  1178. */
  1179. #module
  1180. {
  1181. name = "db_redis"
  1182.  
  1183. /*
  1184. * Redis database to use. This must be configured with m_redis.
  1185. */
  1186. engine = "redis/main"
  1187. }
  1188.  
  1189. /*
  1190. * [RECOMMENDED] Encryption modules.
  1191. *
  1192. * The encryption modules are used when dealing with passwords. This determines how
  1193. * the passwords are stored in the databases, and does not add any security as
  1194. * far as transmitting passwords over the network goes.
  1195. *
  1196. * Without any encryption modules loaded users will not be able to authenticate unless
  1197. * there is another module loaded that provides authentication checking, such as
  1198. * m_ldap_authentication or m_sql_authentication.
  1199. *
  1200. * With enc_none, passwords will be stored in plain text, allowing for passwords
  1201. * to be recovered later but it isn't secure and therefore is not recommended.
  1202. *
  1203. * The other encryption modules use one-way encryption, so the passwords can not
  1204. * be recovered later if those are used.
  1205. *
  1206. * The first encryption module loaded is the primary encryption module. All new passwords are
  1207. * encrypted by this module. Old passwords stored in another encryption method are
  1208. * automatically re-encrypted by the primary encryption module on next identify.
  1209. *
  1210. * NOTE: enc_old is Anope's previous (broken) MD5 implementation which is present in
  1211. * versions prior to Anope 1.7.17. If your databases were made using that module,
  1212. * use this and not enc_md5.
  1213. *
  1214. * NOTE: enc_sha1 relies on how the OS stores 2+ byte data internally, and is
  1215. * potentially broken when moving between 2 different OSes, such as moving from
  1216. * Linux to Windows. It is recommended that you use enc_sha256 instead if you want
  1217. * to use an SHA-based encryption. If you choose to do so, it is also recommended
  1218. * that you first try to get everyone's passwords converted to enc_sha256 before
  1219. * switching OSes by placing enc_sha256 at the beginning of the list.
  1220. *
  1221. */
  1222.  
  1223. #module { name = "enc_bcrypt" }
  1224. module { name = "enc_sha256" }
  1225. #module { name = "enc_md5" }
  1226. #module { name = "enc_sha1" }
  1227.  
  1228. /*
  1229. * When using enc_none, passwords will be stored without encryption. This isn't secure
  1230. * therefore it is not recommended.
  1231. */
  1232. #module { name = "enc_none" }
  1233.  
  1234. /*
  1235. * enc_old is Anope's previous (broken) MD5 implementation used from 1.4.x to 1.7.16.
  1236. * If your databases were made using that module, load it here to allow conversion to the primary
  1237. * encryption method.
  1238. */
  1239. #module { name = "enc_old" }
  1240.  
  1241.  
  1242. /* Extra (optional) modules. */
  1243. include
  1244. {
  1245. type = "file"
  1246. name = "modules.conf"
  1247. }
  1248.  
  1249. /*
  1250. * Chanstats module.
  1251. * Requires a MySQL Database.
  1252. */
  1253. #include
  1254. {
  1255. type = "file"
  1256. name = "chanstats.conf"
  1257. }
  1258.  
  1259. /*
  1260. * IRC2SQL Gateway
  1261. * This module collects data about users, channels and servers. It doesn't build stats
  1262. * itself, however, it gives you the database, it's up to you how you use it.
  1263. *
  1264. * Requires a MySQL Database and MySQL version 5.5 or higher
  1265. */
  1266. #include
  1267. {
  1268. type = "file"
  1269. name = "irc2sql.conf"
  1270. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement