Advertisement
Guest User

Untitled

a guest
Sep 15th, 2014
662
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /*
  2. *
  3. * (c) 2004-2013 Denora Team
  4. * Contact us at [email protected]
  5. *
  6. * Denora configuration file (Example)
  7. * *************************
  8. *
  9. * After making the appropriate changes to this file, place it in the
  10. * Denora data directory (as specified in the "Config" script, default
  11. * /usr/local/lib/denora) under the name "denora.conf".
  12. *
  13. * The configuration format consists of blocks, each containing name-value
  14. * pairs, tags, or string data. It is designed to be easily readable by
  15. * both human beings and Denora.
  16. *
  17. * A block consists of a block name, an opening '{' brace, statements, a
  18. * closing '}' brace, and a ';' semicolon. A statement consists of a
  19. * name, possibly followed by a value, and ending with a semicolon.
  20. * Strings that contain special characters or whitespace can be surrounded
  21. * by '"' double quotes. All elements of the configuration are separated
  22. * by whitespace, and can be packed on one line, or broken up over several
  23. * lines.
  24. */
  25.  
  26. # Comments are supported in three forms:
  27. /* C style
  28. multi-line */
  29. # shell style single-line
  30. // C++ style single-line
  31.  
  32. /*
  33. * A sample block:
  34. *
  35. * block {
  36. * name value; # A statement with a name value
  37. * name 123; # A statement with a number value
  38. * name "hello world"; # A statement with a string value
  39. * tag; # A simple tag
  40. * "will code for food"; # A simple string
  41. * };
  42. *
  43. * You can also use an include directive outside of a block context, if
  44. * you want to split up your configuration in several files:
  45. *
  46. * include path/to/file.conf;
  47. *
  48. * In the documentation for each directive, one of the following will be
  49. * included to indicate whether an option is required:
  50. *
  51. * [REQUIRED]
  52. * Indicates a block which must be given
  53. * Without it, Denora will not start.
  54. *
  55. * [RECOMMENDED]
  56. * Indicates a block which may be omitted, but omitting it may cause
  57. * undesirable side effects.
  58. *
  59. * [OPTIONAL]
  60. * Indicates a block which is optional. If not given, the feature
  61. * will typically be disabled. If this is not the case, more
  62. * information will be given in the documentation.
  63. *
  64. * NOTE: unless other specified, there may be only one block with the
  65. * same name.
  66. */
  67.  
  68.  
  69. ###########################################################################
  70. # Connect [REQUIRED]
  71. # Information needed for Denora to connect to the uplink server.
  72. #
  73. # Required tokens:
  74. # hostname - Remote server hostname
  75. # This must either be a standard Internet hostname
  76. # or dotted-quad numeric address
  77. # This may be overridden at runtime with the "-remote"
  78. # command-line option.
  79. # port - Remote server port
  80. # This must be an integer between 1 and 65535
  81. # passwd - Password to send to the uplink server
  82. # The password is a string which should be enclosed in
  83. # double quotes if it contains any spaces
  84. # This may be overridden at runtime with the "-remote"
  85. # command-line option.
  86. # protocol - IRCd protocol to use.
  87. # Choose one of the following, depending on your ircd:
  88. # Bahamut 1.4 and 1.8 : bahamut
  89. # Charybdis 1.0 : charybdis
  90. # inspircd 1.1 : inspircd11
  91. # inspircd 1.2-2.0 : inspircd12
  92. # ircd-rizon 3.0 : ircdrizon
  93. # ircu 2.10.11+ : ircu
  94. # Nefarious IRCu 1.3 : nefarious13
  95. # Ratbox 2.0 : ratbox
  96. # ScaryNet 2.10.11.x : scarynet
  97. # Unreal 3.2 : unreal32
  98. #
  99. # Optional tokens:
  100. # bindhost - IP to connect from
  101. # This pecifies the local address to bind to before
  102. # connecting to the remote server. This may be useful
  103. # on multihomed hosts. If this is not specified, Stats
  104. # will let the operating system choose the local address.
  105. # bindport - Port number to connect from
  106. # If only a bindhost is specified, Stats will bind to that
  107. # address but let the operating system choose the local
  108. # port number.
  109. # quitprefix - IRCd quit prefix (case sensitive!)
  110. # This is used by Denora to parse Quit messages in order to
  111. # detect Local kills from IRCds which don't send a specific
  112. # KILL event, like Unreal32.
  113. # Common prefixes:
  114. # Bahamut 1.8.x : "Quit:"
  115. # InspIRCd 1.1.x : "Quit:"
  116. # ircu 2.10.11+ : "Quit"
  117. # Nefarious IRCu : "Quit"
  118. # UnrealIRCd 3.2.x : "Quit:"
  119.  
  120. connect {
  121. // required tokens
  122. hostname irc.localhost.net;
  123. port 8765;
  124. passwd "testpassword";
  125. protocol inspircd12;
  126.  
  127. // optional tokens
  128. #bindhost 94.23.14.136;
  129. #bindport 9292;
  130. quitprefix "Quit:";
  131. };
  132.  
  133. ###########################################################################
  134. # Identity [REQUIRED]
  135. # Stats identity information.
  136. #
  137. # Required tokens:
  138. # name - Stats server name
  139. # This specifies the IRC server name which Denora should
  140. # use. May be overridden by the -name command-line option.
  141. # desc - Stats server description
  142. # This specifies the text which should appear as the
  143. # server's information in /whois and similar queries.
  144. # May be overridden by the -desc command-line option.
  145. # user - Stats pseudo username
  146. # This specifies the user@host mask which should be used by
  147. # the Stats pseudoclients. May be overridden by the -user
  148. # and -host command-line options.
  149. # language - Default language
  150. # Currently supported languages:
  151. # English : 1
  152. # Spanish : 2
  153. # German : 3
  154. # French : 4
  155. # Dutch : 5
  156. # Italian : 6
  157. # Russian : 7
  158. # Portuguese : 8
  159. # If you want to know how to translate Denora in your
  160. # language, read the chapter about it in the README.
  161.  
  162. identity {
  163. // required tokens
  164. name "stats.localhost.net";
  165. desc "Statistics for IRC Networks";
  166. language 1;
  167. };
  168.  
  169. ###########################################################################
  170. # StatServ [REQUIRED]
  171. # Specify the nickname and "real" name for the Stats pseudoclient.
  172. #
  173. # Required tokens:
  174. # nick - Bot nickname
  175. # The nickname the pseudo client (bot) will have
  176. # real - Bot realname
  177. # The realname the pseudo client (bot) will have
  178. #
  179. # Optional tokens:
  180. # aliasnick - Optional alias nickname
  181. # When a user will /msg "aliasnick" something, it will be
  182. # forwarded to "nick", and "nick" will answer. This can be
  183. # used to ease the migration from another network, for
  184. # example if your stats are called StatsManager and the
  185. # other network calls them StatServ.
  186. # aliasreal - Optional alias realname
  187. # Same as "real", but for "aliasnick"
  188. # autoop - Makes the bot get mode +o on channels
  189. # automode - autoop mode
  190. # If autoop is enabled, this allows you to specify the
  191. # mode(s) the bot will get, default is "+o"
  192. # partonempty - Makes the bot part empty channels
  193.  
  194. statserv {
  195. // required tokens
  196. nick "StatServ";
  197. real "Stats Server";
  198.  
  199. // optional tokens
  200. #aliasnick "StatServ2";
  201. #aliasreal "Stats Server Forwarder";
  202. #autoop;
  203. #automode "+ov";
  204. #partonempty;
  205. };
  206.  
  207. ###########################################################################
  208. # Filenames [REQUIRED]
  209. # NOTE: All filenames are relative to the Stats data directory.
  210. #
  211. # Required tokens:
  212. # pid - File containing Stats' process ID
  213. # motd - Name of the Message of the Day file
  214. # channeldb - Flat DB file for channel data.
  215. # ctcpdb - Flat DB file for ctcp data.
  216. # serverdb - Flat DB file for server data.
  217. # chanstatsdb - Flat DB file for channel stats data.
  218. # tlddb - Flat DB file for tld data.
  219. # excludedb - Flat DB file for exclude data.
  220. # statsdb - Flat DB file for network data.
  221. # admindb - Flat DB file for admin data.
  222. #
  223. # Optional tokens:
  224. # htmlfile - Path to the HTML file
  225. # If set, this will enable Denora to write stats to html
  226. # Please specify a complete path contained in doublequotes
  227.  
  228. filenames {
  229. // required tokens
  230. pid stats.pid;
  231. motd stats.motd;
  232. channeldb chan.db;
  233. ctcpdb ctcp.db;
  234. serverdb server.db;
  235. chanstatsdb ChannelStats.db;
  236. tlddb tld.db;
  237. excludedb exclude.db;
  238. statsdb stats.db;
  239. admindb admin.db;
  240.  
  241. // optional tokens
  242. #htmlfile "/home/denora/denora.html";
  243. };
  244.  
  245. ###########################################################################
  246. # Backup [RECOMMENDED]
  247. # Specify information on when Denora will do backups of the .db files
  248. #
  249. # Required tokens:
  250. # keepbackups - Enable backups
  251. # freq - Time between making a backup
  252. # keepfor - Time to keep the backups
  253.  
  254. backup {
  255. // required tokens
  256. keepbackups;
  257. freq 1d;
  258. keepfor 7d;
  259. };
  260.  
  261. ###########################################################################
  262. # Netinfo [REQUIRED]
  263. # Specify various network-related information and settings
  264. #
  265. # Required tokens:
  266. # name - Network's name where Denora is running on
  267. #
  268. # Optional tokens:
  269. # numeric - Numeric ID
  270. # Sets the numeric Denora should have. If your IRCd
  271. # has a numeric, Denora will need one too. Consult
  272. # your ircd's documentation before using this.
  273. # nickchar - Sets the nickchar encoding for UnrealIRCd 3.2
  274. # Only needed if you use that ircd. See the Unreal
  275. # documentation for more information about this.
  276. # hiddenprefix - Prefix for hidden hosts on P10-based ircds
  277. # hiddensuffix - Suffix for hidden hosts on P10-based ircds
  278. # ctcpusers - Get the CTCP version from users
  279. # The users connecting to your network will receive
  280. # a ctcp version request from the Denora bot.
  281. # ctcpeob - Disable CTCP during burst
  282. # Avoid sending out ctcp requests to users during burst.
  283. # This is only useful if you restart Denora often and
  284. # don't want to annoy your users.
  285. # "ctcpusers" still needs to be enabled.
  286. # largenet - Disable extended features
  287. # This will do everything what "nonicktracking" does,
  288. # and additionally disable: chanstats, host lookup, tld,
  289. # ctcpusers, statserv alias, motd, server bans, channel
  290. # bans, server uptime and server version.
  291. # We don't recommend using this. It's only done for
  292. # people who use a remote SQL database and really need
  293. # to reduce the query load.
  294. # ustatsregistered - Only track registered users
  295. # Enable this to only track registered (+r or account)
  296. # users in chanstats. This will reduce the risk of nick
  297. # confusion and require users to register to services
  298. # in order to be tracked by chanstats.
  299. # ustatsnobots - This will exclude all users with mode +B from chanstats
  300. # sphtml - Hide +s/+p channels from HTML stats
  301. # This only applies for HTML output, not for SQL. To
  302. # hide those channels from SQL, just use an appropriate
  303. # database query.
  304. # excludeserv - Exclude any user from this server
  305. # This only applies for HTML output, not for SQL. To
  306. # hide those servers from SQL, just use an appropriate
  307. # database query.
  308. # statspage - URL for Web Stats
  309. # This will be advertised in the Denora reply to the
  310. # STATS command. Put a link to your HTML output file,
  311. # or to phpDenora, for example.
  312.  
  313. netinfo {
  314. // required tokens
  315. name "LocalNet";
  316.  
  317. // optional tokens
  318. numeric "122";
  319. #nickchar "latin1";
  320. #hiddenprefix "";
  321. #hiddensuffix ".users.mynet.tld";
  322. ctcpusers;
  323. #ctcpeob;
  324. #nonicktracking;
  325. #largenet;
  326. #ustatsregistered;
  327. ustatsnobots;
  328. #sphtml;
  329. #excludeserv "services.yournet.net";
  330. #statspage "http://bots.irc.localhost.net/stats.html";
  331. };
  332.  
  333. ###########################################################################
  334. # Timeout [REQUIRED]
  335. # Specify various timeout options for performing certain operations
  336. #
  337. # Note: the timeout values are not an absolute limit on the period between
  338. # checks of the timeout list: the period may be as great as the read token
  339. # during periods of inactivity.
  340. #
  341. # Required tokens:
  342. # read - Period for reading from network.
  343. # warning - Interval for sending messages for program errors.
  344. # This token sets the interval between sending warning
  345. # messages for program errors via WALLOPS/GLOBOPS.
  346. # update - Time between saving long term data to disk
  347. # htmlupdate - Time between exporting the html files
  348. # pingfreq - Time between pinging servers to check for lag
  349. # uptimefreq - Time between uptime servers to check
  350. # sqlfreq - Time between checking if the sql server is there
  351. # clearinactive - Clear inactive users from chanstats
  352. # clearchaninactive - Clear inactive channels from chanstats
  353. # usercache - The amount of time which we must keep users in the user
  354. # table. Since users connect/disconnect very often, it is
  355. # reasonable to keep this at a low value such as 2 days to
  356. # avoid filling the table with too much data.
  357. # If using applications that rely on user information, such
  358. # as a Denora module or phpDenora, it is recommended to set
  359. # this to a higher value such as 30 days, if possible.
  360. # userfreq - How often (in seconds) to check for obsoleted users?
  361. # This shouldn't be set any higher than 10 seconds, and 1
  362. # second is best if your system is powerful enough (or your
  363. # network small enough) to handle it. 0 will cause the
  364. # timeout list to be checked every time through the main
  365. # loop, which will probably slow down Stats too much to be
  366. # useful on most networks.
  367. # servercache - The amount of time which we must keep servers in the
  368. # server table. Since servers split are uncommon, we keep
  369. # them for a week.
  370. # If using applications that rely on server information,
  371. # such as a Denora module or phpDenora, it is recommended to
  372. # set this to a higher value such as 30 days, if possible.
  373. # serverfreq - How often (in seconds) to check for obsoleted servers?
  374. # This shouldn't be set any higher than 10 seconds, and 1
  375. # second is best if your system is powerful enough (or your
  376. # network small enough) to handle it. 0 will cause the
  377. # timeout list to be checked every time through the main
  378. # loop, which will probably slow down Stats too much to be
  379. # useful on most networks.
  380.  
  381. timeout {
  382. // required tokens
  383. read 5s;
  384. warning 4h;
  385. update 2m;
  386. htmlupdate 2m;
  387. pingfreq 2m;
  388. uptimefreq 1h;
  389. sqlfreq 5m;
  390. clearinactive 30d;
  391. clearchaninactive 30d;
  392. usercache 60d;
  393. userfreq 10s;
  394. servercache 60d;
  395. serverfreq 5s;
  396. };
  397.  
  398. ###########################################################################
  399. # Options [OPTIONAL]
  400. # Configures various options for Denora itself.
  401. #
  402. # Optional tokens:
  403. # keeplogs - Number of days log files are kept
  404. # This sets the number of days log files are kept. If you
  405. # don't give it, or if you set it to 0, logs will be kept
  406. # indefinitely. NOTE: Denora must run 24 hours a day for
  407. # this feature to work.
  408. # logchan - Channel used for Denora for output logs.
  409. # When defined, Denora will output log messages to this
  410. # channel. IMPORTANT: This can be a security risk so make
  411. # certain this channel is sufficiently protected from normal
  412. # access.
  413. # dumpcore - Dump core on segmentation faults.
  414. # This will make Denora dump core when a segmentation fault
  415. # occurs. This is generally not needed, but if Denora is
  416. # crashing on your network and you want to make a bug
  417. # report, having a core file may be of great help.
  418. # hidestatso - Only show stats o to IRC Operators.
  419. # tokens - Allows IRC Networks to use TOKEN commands.
  420. # This allows IRC networks to use TOKEN commands instead of
  421. # the standard commands. This saves bandwidth.
  422. # ts6 - Use TS6 code on IRCD that use it
  423. # chanstatsdef - Default flag for ChanStats Fantasy commands
  424. # off = default
  425. # on = enabled but will message the results
  426. # notice = enabled and will notice the results
  427. # smiley - Default smileys used by chanstats
  428. # hideuline - hide ulines from hmtl/xml output
  429. # nologs - only use if you want NO log files
  430. # trigger - character to use for triggering chanstats
  431. # jupemaster - name of the server who issues JUPE so leafs can be ignored
  432.  
  433. options {
  434. // optional tokens
  435. keeplogs 60;
  436. logchan "#debug";
  437. dumpcore;
  438. hidestatso;
  439. tokens;
  440. ts6;
  441. chanstatsdef "on";
  442. smiley " :) ;) :-) ;-) ^_^ :-D :D :-P :P =) ;D :p ";
  443. #hideuline;
  444. #nologs;
  445. #trigger "!";
  446. #jupemaster "services.your.net";
  447. };
  448.  
  449. ###########################################################################
  450. # Admin [RECOMMENDED]
  451. # Define the users that will be able to login to the Denora pseudoclient
  452. #
  453. # There may be multiple Admin block.
  454. #
  455. # NOTE: a user must be opered to the ircd to be able to login to Denora
  456. #
  457. # Required tokens:
  458. # name - Admin username
  459. # passwd - Admin password
  460. # hostname - Admin hostmask
  461. #
  462. # Optional tokens:
  463. # language - Admin language
  464. # Currently supported languages:
  465. # English : 1
  466. # Spanish : 2
  467. # German : 3
  468. # French : 4
  469. # Dutch : 5
  470. # Italian : 6
  471. # Russian : 7
  472. # If not set, the default language will be used.
  473.  
  474. admin {
  475. // required tokens
  476. name "Borja";
  477. passwd "mypass";
  478. hostname "*@*";
  479.  
  480. // optional tokens
  481. #language 1;
  482. };
  483.  
  484.  
  485. ###########################################################################
  486. # SQL [OPTIONAL]
  487. # Your SQL configuration for use with Denora.
  488. #
  489. # To make use of SQL use these tokens and change their setting to the
  490. # appropriate values.
  491. #
  492. # Please read docs/MYSQL file for more info and details.
  493. #
  494. # Required tokens:
  495. # type - SQL server type.
  496. # Available options:
  497. # mysql
  498. # NOTE: Denora supports MySQL. Future versions may support
  499. # other SQL technologies.
  500. # host - SQL server hostname.
  501. # user - SQL user to log in with.
  502. # passwd - SQL pass required for the specified user to log in.
  503. # name - SQL database name Denora uses
  504. #
  505. # Optional tokens:
  506. # sock - MySQL UNIX socket
  507. # port - MySQL TCP port
  508. # retryonlost - Attempt to reconnect sql even if we lost the server
  509. # retries - Number of retry attempts
  510. # retrygap - Time gap between each retry attempt
  511. # The product of these values must be between 1 and 60.
  512. # disableopt - Use with caution, only enable this if you are having
  513. # problems with mysql and zlib functions
  514. # keepusers - Do not truncate the users table on startup
  515. # Use this only in combination with the "usercache" setting!
  516. # Only enable this if you really need it.
  517. # keepservers - Do not truncate the server table on startup
  518. # Use this only in combination with the "servercache"
  519. # setting! Only enable this if you really need it.
  520.  
  521. sql {
  522. // required tokens
  523. type mysql;
  524. host localhost;
  525. user "root";
  526. passwd "EjurdhSw2342213!es45";
  527. name denora;
  528.  
  529. // optional tokens
  530. #sock /tmp/mysql.sock;
  531. #port 3306;
  532. #retryonlost 0;
  533. #retries 6;
  534. #retrygap 10;
  535. #disableopt;
  536. keepusers;
  537. keepservers;
  538. };
  539.  
  540. ###########################################################################
  541. # Tables [REQUIRED]
  542. # Sets the various SQL table names.
  543. #
  544. # Don't change the default values unless really needed!
  545.  
  546. tables {
  547. // required tokens
  548. users user; # Name of the Users table
  549. chanbans chanbans; # Name of the Channel Bans table
  550. chanexcept chanexcept; # Name of the Channel Exceptions table
  551. ison ison; # Name of the ISON table
  552. server server; # Name of the Servers table
  553. gline glines; # Name of the Glines table
  554. chan chan; # Name of the Channel table
  555. maxvalue maxvalues; # Name of the Maxvalues table
  556. chaninvite chaninvites; # Name of the Channel Invites table
  557. tld tld; # Name of the TLD table
  558. ctcp ctcp; # Name of the CTCP table
  559. sqline sqline; # Name of the SQLine table
  560. sgline sgline; # Name of the SGLine table
  561. csaliases aliases; # Name of the Chan Stats Aliases table
  562. cscstats cstats; # Name of the Chan Stats Channel table
  563. csustats ustats; # Name of the Chan Stats User table
  564. stats stats; # Name of the Hourly stats table
  565. spamfilter spamfilters; # Name of the Spam Filter Table
  566. current current; # Name of the table which holds the current info
  567. chanstats channelstats; # Name of the Channel Stats by Hour
  568. servstats serverstats; # Name of the Server Stats by Hour
  569. chanquiet chanquiet; # Name of the Channel Quiet table
  570. admins admin; # Name of the Admins table
  571. };
  572.  
  573. ###########################################################################
  574. # Modules [OPTIONAL]
  575. # Allows Denora's functionality to be extended by loading modules.
  576. #
  577. # Please read docs/MODULES file for more info and details.
  578. #
  579. # Optional tokens:
  580. # autoload - Name of the module to load on startup.
  581. # There can be up to 128 autoload tokens.
  582. # delayed - Name of the module to load once Denora is already
  583. # connected to the IRCd.
  584. # There can be up to 128 delayed tokens.
  585.  
  586.  
  587. modules {
  588. // optional tokens
  589. delayed lastspoke;
  590. delayed seen;
  591.  
  592.  
  593. #autoload next_module;
  594. #delayed irc_delay_example;
  595. #delayed mysql_backup;
  596.  
  597. # Both Modules mysql_optimize and mysql_optimize_event will call
  598. # OPTIMIZE TABLE each midnight.
  599. # mysql_optimize will do a normal query and waits until its done
  600. # this could take a few moments on larger tables
  601. # mysql_optimize_event installs a MySQL EVENT that will automatically
  602. # triggered each midnight on your SQL server,
  603. # even if denora is not running.
  604. # For this module you need the EVENT privilegue
  605. # YOU NEED TO ACTIVATE ONLY ONE OF THOSE MODULES.
  606. #delayed mysql_optimize;
  607. #delayed mysql_optimize_event;
  608. };
  609.  
  610. ###########################################################################
  611. # XML RPC [OPTIONAL]
  612. # XML RPC is a lightweight Server/Parser allowing user to send XMLRPC
  613. # data to Denora and have the data returned in the XMLRPC standard.
  614. #
  615. # Please read docs/XMLRPC file for more info and details.
  616. #
  617. # Required tokens:
  618. # xmlrpc_enable - You must set this for XMLRPC to start
  619. #
  620. # Optional tokens:
  621. # xmlrpc_host - IP address to have the XMLRPC server on
  622. # xmlrpc_port - Port on which to listen to
  623. # xmlrpc_accept - Accept only data from these hosts.
  624. # There can be up to 128 client host addresses.
  625.  
  626. xmlrpc {
  627. #xmlrpc_enable;
  628. #xmlrpc_host 127.0.0.1;
  629. #xmlrpc_port 8080;
  630. #xmlrpc_accept 127.0.0.1;
  631. #xmlrpc_accept 192.168.0.1;
  632. };
  633.  
  634. ###########################################################################
  635. # THREADING [OPTIONAL/EXPERIMENTAL]
  636. # If you compiled denora using threads, then you also need to enable them
  637. # here. Threads will be used to execute non essential db queries at a
  638. # later state to prevent denora from timing out on the network.
  639. #
  640. # WARNING
  641. # This feature is experimental and as of current, it does not work 100%
  642. #
  643. # Required tokens:
  644. # usethread - You must set this for threading to work
  645. #
  646.  
  647. threading {
  648. #usethread;
  649. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement