<script>
  <!-- register Deki services -->
  <action verb="POST" path="/host/load?name=mindtouch.deki" />
  <action verb="POST" path="/host/load?name=mindtouch.deki.services" />
  <action verb="POST" path="/host/load?name=mindtouch.indexservice" /> 

 <!-- start Deki services -->
  <action verb="POST" path="/host/services">
    <config>

      <!-- Service startup -->
      <!-- path: relative path for deki-api service. I.e., http://server/host/deki -->
      <!-- sid: the serviceid points to a class that represents the service for startup-->
      <path>deki</path>
      <sid>http://services.mindtouch.com/deki/draft/2006/11/dekiwiki</sid>

      <!-- Global settings -->
      <!-- deki-path: full path to dekiwiki php (pointed to by web server) -->
      <!-- apikey: apikey used to access privileged features of deki-api -->
      <!-- imagemagick-ignore-list: comma separated list of file extensions to bypass image preview -->
      <!-- imagemagick-convert-path: full path to imagemagick convert (used to generate image previews) -->
      <!-- imagemagick-identify-path: full path to imagemagick identify (used to determine image dimensions) -->
      <!-- deki-resources-path: path to deki-wiki resources directory containing txt files with localized strings. 
              Resource files are searched in the order "resources.custom.txt" -> "resources-[language]-[culture].txt" -> "resources-[language].txt" -> "resources.txt" 
              where [language] and [culture] are standard two letter abbreviations such as en-us -->
      <!-- dblogging-conn-string: DB connection string for detailed logging of deki-api requests/responses. Comment out to disable this logging -->
      <deki-path>/var/www/dekiwiki</deki-path>

      <!-- Global apikey valid for all wiki instances -->
      <apikey>GFxaNVK37fLPsFEYM7NwdIuNpGIiFTOX</apikey>

      <imagemagick-ignore-list>ico</imagemagick-ignore-list>
      <imagemagick-convert-path>/usr/bin/convert</imagemagick-convert-path>
      <imagemagick-identify-path>/usr/bin/identify</imagemagick-identify-path>
      <princexml-path>/usr/local/bin/prince</princexml-path>
      <!-- <deki-resources-path>/var/www/mks-wiki/resources</deki-resources-path> -->
      <!-- dblogging-conn-string>Server=localhost;Port=3306;Database=wikidb;Uid=root;Pwd=password;pooling=true; Connection Timeout=5; Protocol=sockets; Min Pool Size=1; Max Pool Size=100; Connection Reset=false;character set=utf8;ProcedureCacheSize=25;Use Procedure Bodies=true;</dblogging-conn-string -->

      <!-- Page Subscription Notification settings: -->
      <!-- accumulation-time: The amount of time (in seconds) to wait for changes to accumulate before sending out notification emails (default: 10 minutes) -->
      <!-- 
      <page-subscription>
          <accumulation-time>60</accumulation-time>
      </page-subscription>
      -->
         
      <wikis>

        <globalconfig>
          <!-- optional overrides for all instances -->
          <!-- globalconfig can be used to override any setting in the 'config' table for all wiki instances in a multi-tenant environment -->
          <!-- For a complete list of options, see: http://developer.mindtouch.com/Deki/Configuration -->
	  <!-- For example: -->
          <!-- 
               <cache>
                 <anonymous-output>true</anonymous-output>
               </cache>
          -->
        </globalconfig>

        <config id="default">
          <!-- Per instance settings -->
          <!-- host: hostname for the wiki. Use * for all hosts. Multiple <host> entries may be used per site.-->
          <!-- db-server: hostname/ip of database for this instance-->
          <!-- db-port: db port (default 3306 for mysql)-->
          <!-- db-catalog: catalog or database name for this instance -->
          <!-- db-user: db account to use. Ensure full access to the catalog and rights to exec stored procs.-->
          <!-- db-password: password for db account-->
          <!-- db-options: other connection string settings. Ensure db connection pooling is enabled and that the connection supports utf8 encoding-->

          <host>*</host>

          <db-server>localhost</db-server>
          <db-port>3306</db-port>
          <db-catalog>wikidb</db-catalog>
          <db-user>wikiuser</db-user>
          <db-password hidden="true">2yeOr7ByBUMBiB4z</db-password>
          <db-options>pooling=true; Connection Timeout=5; Connection Lifetime=30; Protocol=socket; Min Pool Size=2; Max Pool Size=50; Connection Reset=false;character set=utf8;ProcedureCacheSize=25;Use Procedure Bodies=true;</db-options>

	  <!-- Page Subscription -->
          <!-- from-address: From: address to use when sending out notification emails -->
	  <!--
	  <page-subscription>
	      <from-address>deki@example.com</from-address>
	  </page-subscription>
	  -->
        </config>

      </wikis>

      <!-- Lucene service configuration -->
      <!-- path.store: absolute path to the lucene index store (default: /var/www/dekiwiki/bin/cache/luceneindex/{wiki_id}) -->
      <!-- filter-path: file extension and the location of an executable to convert that file extension to plain text.  -->
      <!--              Note: the executable MUST read from stdin and write to stdout -->
      <!-- preview-length: The number of characters to to store in the search preview (default: 1024) -->
      <!-- namespace-whitelist: comma delimited list of namespaces to include in search index 
           default: main, project, user, template, help, main_talk, project_talk, user_talk, template_talk, help_talk
      -->
      <!-- index-redirects: specifies whether or not to index redirect pages (default: false) -->
      <indexer>
        <path.store>/var/www/dekiwiki/bin/cache/luceneindex/$1</path.store>
        <filter-path extension="doc">/var/www/dekiwiki/bin/filters/wvText</filter-path>
        <filter-path extension="pdf">/var/www/dekiwiki/bin/filters/pdf2text</filter-path>
        <filter-path extension="xhtml">/var/www/dekiwiki/bin/filters/html2text</filter-path>
        <filter-path extension="html">/var/www/dekiwiki/bin/filters/html2text</filter-path>
        <filter-path extension="htm">/var/www/dekiwiki/bin/filters/html2text</filter-path>
        <filter-path extension="docx">/var/www/dekiwiki/bin/filters/docx2txt</filter-path>
        <filter-path extension="odt">/var/www/dekiwiki/bin/filters/odt2txt</filter-path>
        <filter-path extension="odp">/var/www/dekiwiki/bin/filters/odp2txt</filter-path>
        <filter-path extension="ppt">/var/www/dekiwiki/bin/filters/ppt2txt</filter-path>
        <filter-path extension="pptx">/var/www/dekiwiki/bin/filters/pptx2txt</filter-path>
        <filter-path extension="xls">/var/www/dekiwiki/bin/filters/xls2txt</filter-path>
        <filter-path extension="pl"></filter-path>
        <filter-path extension="c"></filter-path>
        <filter-path extension="h"></filter-path>
        <filter-path extension="inc"></filter-path>
        <filter-path extension="php"></filter-path>
        <filter-path extension="cs"></filter-path>
        <filter-path extension="txt"></filter-path>
        <filter-path extension="csv"></filter-path>
        <filter-path extension="xml"></filter-path>
        <filter-path extension="xsl"></filter-path>
        <filter-path extension="xslt"></filter-path>
         
        <!-- Namespace boosting: lucene boost value to use when indexing. This allows the ability to score results in one namespace higher than another -->
        <!-- 
        <namespace-boost>
          <namespace name="main" value="4"/>
          <namespace name="main_talk" value="1"/>
          <namespace name="user" value="2"/>
          <namespace name="user_talk" value="0.5"/>
          <namespace name="project" value="5"/>
          <namespace name="project_talk" value="1"/>
          <namespace name="template" value="0.5"/>
          <namespace name="template_talk" value="0.5"/>
          <namespace name="help" value="1"/>
          <namespace name="help_talk" value="0.5"/>
        </namespace-boost>
        -->
      </indexer>

      <!-- DekiScript settings -->
      <!-- max-web-response-length: Max. accepted response length for web.* functions (default: 524288 bytes) (added in 9.08.1) -->
      <!-- min-web-cache-ttl: Min. period that items will be cached by web.* functions (default: 300 seconds) (added in 9.08.1) -->
      <!--
      <scripting>
        <max-web-response-length>524288</max-web-response-length>
        <min-web-cache-ttl>300</min-web-cache-ttl>
      </scripting>
      -->
    </config>
  </action>
</script>
