Permalink: http://tinyurl.com/5uyf43
Configuration of the DekiWiki Api service is handled a startup xml file (/etc/dekiwiki/mindtouch.deki.startup.xml) and the database table 'config'. The xml file is used by Dream to start the Deki Wiki service and setup the environment while the 'config' table holds options that can generally be set via the control panel (/Admin:Config). Both are described here.
| Configuration Key | Default Value | Changelog |
|---|---|---|
| admin/email | 1.8.2 | |
| admin/contact-threshold | 1 | 1.8.2 |
| cache/roles | false | 1.8.2 |
| cache/services | false | 1.8.2 |
| cache/users | false | 1.8.2 |
| cache/bans | false | 8.05.1 |
| cache/anonymous-output | false | 8.05.1 |
| cache/anonymous-output-short | 300 | 8.05.1 |
| cache/anonymous-output-long | 3600 | 8.05.1 |
| content/new-user | 8.05.2 | |
| db-catalog | 1.8.3 | |
| db-password | 1.8.3 | |
| db-server | 1.8.3 | |
| db-user | 1.8.3 | |
| editor/safe-html | true | 1.8.2 |
| files/blocked-extensions | exe, vbs, scr, reg, bat, com | 1.8.1 |
| files/imagemagick-extensions | bmp, jpg, jpeg, png, gif | 1.8.1 |
| files/imagemagick-max-size | 2000000 | 1.8.1 |
| files/max-file-size | 268435456 | 1.8.1 |
| gravatar/default | 8.05.2 | |
| gravatar/rating | g | 8.05.2 |
| gravatar/size | 80 | 8.05.2 |
| languages | 8.05 | |
| mail/smtp-servers | 1.8.3 | |
| mail/smtp-username | 1.8.3 | |
| mail/smtp-password | 1.8.3 | |
| security/allow-anon-account-creation | true | 1.8.1d |
| security/cookie-expire-secs | 604800 | 1.8.1d |
| security/new-account-role | Contributor | 1.8.1d |
| security/allow-trusted-auth | false | 8.05.1 |
| security/trusted-auth-provider-id | 8.05.1 | |
| security/homepage-grant-role | 8.05.2 | |
| security/admin-user-for-impersonation | sysop or admin | 8.05.2 |
| site/search-disabled | false | 1.8.1 |
| stats/page-hit-counter | true | 8.05.1 |
| storage/fs/cache-path | 1.8.1 | |
| storage/fs/path | 1.8.1 | |
| storage/s3/bucket | 1.8.1 | |
| storage/s3/privatekey | 1.8.1 | |
| storage/s3/publickey | 1.8.1 | |
| storage/s3/prefix | 1.8.1 | |
| storage/s3/timeout | 1.8.1 | |
| storage/type | fs | 1.8.1 |
| ui/analytics-key | UA-68075-16 | 1.8.1 |
| ui/banned-words | 1.8.1 | |
| ui/comment-count | 15 | 1.8.1 |
| ui/custom/bodycss | 1.8.2 | |
| ui/custom/css | 1.8.2 | |
| ui/dynamic-nav | true | 1.8.1 |
| ui/default-auth-service | 1.8.3 | |
| ui/language | en-us | 1.8.1 |
| /common/logo/logo.png | 1.8.1 | |
| ui/logo-uri | 1.8.3 | |
| ui/nav-max-items | 25 | 1.8.3 |
| ui/nav-max-width | 1600 | 8.0.7 |
| ui/sitename | DekiWiki (1.81) | 1.8.1 |
| ui/skin | neutral | 1.8.1 |
| ui/template | ace | 1.8.1 |
| ui/use-cdn | false | 1.8.1d |
| ui/logo-maxwidth | 280 | N/A |
| ui/logo-maxheight | 72 | N/A |
{{wiki.localize('System.API.new-user-page-text')}}
<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 -->
<!-- deki: relative path for deki-api service. I.e., http://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) -->
<!-- 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/deki-hayes</deki-path>
<imagemagick-convert-path>/usr/bin/convert</imagemagick-convert-path>
<imagemagick-identify-path>/usr/bin/identify</imagemagick-identify-path>
<deki-resources-path>/var/www/mks-wiki/resources</deki-resources-path>
<!-- dblogging-conn-string>Server=localhost;Port=3306;Database=wikidb;Uid=wikiuser;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 -->
<!-- Per instance and multi-instance settings -->
<wikis>
<config id="default">
<host>*</host>
<!-- 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-->
<db-server>dbhostname</db-server>
<db-port>3306</db-port>
<db-catalog>wikidb</db-catalog>
<db-user>wikiuser</db-user>
<db-password hidden="true">password</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>
<!-- Add more <config> sections to enable multiple wikis to be hosted by one Deki service -->
<!--config id="foowiki">
<host>foo</host>
<host>foowiki</host>
<host>foowiki.hostname.com</host>
<db-server>dbhostname</db-server>
<db-port>3306</db-port>
<db-catalog>foowiki</db-catalog>
<db-user>foowikiuser</db-user>
<db-password hidden="true">password</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/$1</path.store>
<filter-path extension="doc">/opt/deki/bin/filters/wvText</filter-path>
<filter-path extension="pdf">/opt/deki/bin/filters/pdf2text</filter-path>
<filter-path extension="xhtml">/opt/deki/bin/filters/html2text</filter-path>
<filter-path extension="html">/opt/deki/bin/filters/html2text</filter-path>
<filter-path extension="htm">/opt/deki/bin/filters/html2text</filter-path>
<filter-path extension="docx">/opt/deki/bin/filters/docx2txt</filter-path>
<filter-path extension="odt">/opt/deki/bin/filters/odt2txt</filter-path>
<filter-path extension="odp">/opt/deki/bin/filters/odp2txt</filter-path>
<filter-path extension="ppt">/opt/deki/bin/filters/ppt2txt</filter-path>
<filter-path extension="pptx">/opt/deki/bin/filters/pptx2txt</filter-path>
<filter-path extension="xls">/opt/deki/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>
34 # <config>
35 # <config id="default">