Drone : Configuration Global This page last changed on Feb 15, 2005 by gbevin. Since Drone runs under the RIFE framework, all global settings of RIFE apply. The global configuration can be modified by editing `config.xml`. Below is an example configuration file:
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <!DOCTYPE config SYSTEM "/dtd/config.dtd">
    <config>
    	<param name="DRONE_DATASOURCE">postgresql</param>
    	<param name="DRONE_TIMEZONE">GMT</param>
    	<param name="MAX_SEARCH_RESULTS">20</param>
    	<param name="LUCENE_DIR">/tmp/drone-lucene</param>
    </config>
As you can see, Drone understands the following specific settings: ### `DRONE_DATASOURCE` You have to enter the name of your datasource here. Since it's possible to declare several datasources in the `datasources.xml` file, Drone has to know which one to use. ### `DRONE_TIMEZONE` Contains the name of the timezone that Drone will use to format and parse dates and times. ### `MAX_SEARCH_RESULTS` Drone is capable of searching logfiles by receiving commands through IRC. The results will be returned to the user as private messages. By entering a number here, you can setup how many results will be returned maximum. ### `LUCENE_DIR` You have to enter the name of the directory where the search index of the logs will be created. This directory has to be writable by the user that runs the bot. It's recommended to configure the user permissions before putting your bot online.

Document generated by Confluence on Feb 15, 2005 12:31