<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" /> 

  <!-- The next one does NOT end with "/>"!  -->
  <action verb="POST" path="/host/services">


  <config>
      <!-- GLOBAL config - applies to all wikis and to the SINGLE dekihost service -->

      <!-- deki: relative path for deki-api service. I.e., http://host/deki -->
      <path>deki</path>

      <!-- There is no services.mindtouch.com.  I think they just use an URL as 
           a GUID for the service.  (Extensions also get a sid, so I think that
           the 'core' deki service is similar. -->
      <sid>http://services.mindtouch.com/deki/draft/2006/11/dekiwiki</sid>

      <!-- The apikey is unique to the dekihost service instance.  (If you decide to run multiple
           wikis with a dekihost per wiki, each one gets a different apikey.) -->
      <apikey>eatatjoesmQxn73XqVj0FbHeatatjoes</apikey>

      <!-- deki-path: full path to the directory where your index.php lives.
           If you run multiple wikis, they can share the same index.php and deki-path. -->
      <deki-path>/usr/local/wikis/deki-wiki-hayes-kleinfelter.org</deki-path>


      <!-- 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) -->
      <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>

      <!-- max-image-size: size in bytes of largest image (mimetype: image/*) to
           accept. comment out or set to 0 to disable maximum-->
      <max-image-size>2000000</max-image-size>

      <!-- blocked-attachment-extensions: list of file attachment extensions to disallow for security-->
      <blocked-attachment-extensions>exe, vbs, scr, reg, bat, com</blocked-attachment-extensions>

      <!-- dblogging-conn-string: DB connection string for detailed logging of
           deki-api requests/responses. Comment out to disable this logging -->
      <!-- 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 -->


    <!-- The wikis section contains one config entry per wiki. The wikis section (and, by extension,
         the config sections within) is nested inside the global config section. -->
    <wikis>
        <config id="wiki.kleinfelter.org">
            <host>korg</host>
            <host>kleinfelter.org</host>
            <host>www.kleinfelter.org</host>
            <host>wiki.kleinfelter.org</host>

            <!-- authtoken-salt: this is a unique key for the wiki instance thats used
                 for generating and validating the authentication token cookie. 
                 Ensure that the attribute 'hidden' is set to true to not expose this value-->
            <authtoken-salt hidden="true">this is private 1</authtoken-salt>

            <!-- banned-words: comma separated list of banned words -->
            <banned-words></banned-words>

            <storage-provider type="fs">
                <publickey></publickey>
                <privatekey hidden="true"></privatekey>
                <bucket></bucket>
                <prefix>korg</prefix>
                <path>/usr/local/wikis/deki-wiki-hayes-kleinfelter.org/attachments</path>
            </storage-provider>
      
            <!-- db-catalog: catalog or database name for this instance (default wikidb for non-cluster setup) -->
            <!-- db-user: db account to use. Ensure full access to the catalog and rights to exec stored procs.-->
            <!-- db-options: other connection string settings. Ensure db connection pooling is enabled and
                 that the connection supports utf8 encoding-->
            <db-server>localhost</db-server>
            <db-port>3306</db-port>
            <db-user>db-user-1</db-user>
            <db-password hidden="true">notmypassword</db-password> 
            <db-catalog>deki-kleinfelter</db-catalog>
            <db-options>pooling=true; Connection Timeout=5; Protocol=socket; Min Pool Size=2; Max Pool Size=50; Connection Reset=false;character set=utf8;ProcedureCacheSize=25;Use Procedure Bodies=true;</db-options>
        </config>

        <config id="wiki.kleinfelter.com">
            <host>kcom</host>
            <host>kleinfelter.com</host>
            <host>www.kleinfelter.com</host>
            <host>wiki.kleinfelter.com</host>

            <authtoken-salt hidden="true">this is private 2</authtoken-salt>

            <storage-provider type="fs">
                <publickey></publickey>
                <privatekey hidden="true"></privatekey>
                <bucket></bucket>
                <prefix>kcom</prefix>
                <path>/usr/local/wikis/deki-wiki-hayes-kleinfelter.com/attachments</path>
            </storage-provider>
      
            <db-server>localhost</db-server>
            <db-port>3306</db-port>
            <db-catalog>deki-k-com</db-catalog>
            <db-user>db-user-2</db-user>
            <db-password hidden="true">notmypassword2</db-password> 
            <db-options>pooling=true; Connection Timeout=5; Protocol=socket; Min Pool Size=2; Max Pool Size=50; Connection Reset=false;character set=utf8;ProcedureCacheSize=25;Use Procedure Bodies=true;</db-options>
        </config>

    </wikis>

    <indexer>
        <path.store>/usr/local/var/luceneindex</path.store>
        <!-- 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 -->
        <filter-path extension="doc">/usr/local/wikis/deki-wiki-hayes-kleinfelter.com/bin/filters/wvText</filter-path>
        <filter-path extension="pdf">/usr/local/wikis/deki-wiki-hayes-kleinfelter.com/bin/filters/pdf2text</filter-path>
        <filter-path extension="xhtml">/usr/local/wikis/deki-wiki-hayes-kleinfelter.com/filters/html2text</filter-path>
        <filter-path extension="html">/usr/local/wikis/deki-wiki-hayes-kleinfelter.com/bin/filters/html2text</filter-path>
        <filter-path extension="htm">/usr/local/wikis/deki-wiki-hayes-kleinfelter.com/bin/filters/html2text</filter-path>
        <filter-path extension="docx">/usr/local/wikis/deki-wiki-hayes-kleinfelter.com/bin/filters/docx2txt</filter-path>
        <filter-path extension="odt">/usr/local/wikis/deki-wiki-hayes-kleinfelter.com/bin/filters/odt2txt</filter-path>
        <filter-path extension="odp">/usr/local/wikis/deki-wiki-hayes-kleinfelter.com/bin/filters/odp2txt</filter-path>
        <filter-path extension="ppt">/usr/local/wikis/deki-wiki-hayes-kleinfelter.com/bin/filters/ppt2txt</filter-path>
        <filter-path extension="pptx">/usr/local/wikis/deki-wiki-hayes-kleinfelter.com/bin/filters/pptx2txt</filter-path>
        <filter-path extension="xls">/usr/local/wikis/deki-wiki-hayes-kleinfelter.com/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>
    </indexer>

  </config>

  </action>
</script>
