This file sits in C:\deki\api along with mindtouch.deki.startup.xml, and above a bin\ folder that contains the MindTouch DLLs.
--- Deki
|
|-- api
| |
| \-- bin
|
|-- data
| |
| |-- lock
| |
| |-- logs
| |
| |-- luceneindex
| |
| \-- servicestate
|
\-- web
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<!-- NOTE: this element must be first -->
<configSections>
<section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler, log4net"/>
</configSections>
<!-- add 'bin/services' folder to assembly search path -->
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<probing privatePath="bin;bin\services"/>
</assemblyBinding>
</runtime>
<!-- Dream Settings -->
<appSettings>
<add key="Lucene.Net.lockDir" value="..\data\lock"/>
<!-- Folder where service state is stored -->
<add key="storage-dir" value="..\data\servicestate" />
<!-- TODO: set the Dream host service API key -->
<add key="apikey" value="insert your API key here, to match mindtouch.deki.startup.xml"/>
<!-- Script(s) to run when Dream server starts up -->
<add key="script" value="mindtouch.deki.startup.xml" />
<!-- API URI - if using /api instead of /@api, set this. -->
<!-- <add key="public-uri" value="http://deki.example.org/api/" /> -->
</appSettings>
<!-- IIS connection settings -->
<system.net>
<connectionManagement>
<clear />
<add address="*" maxconnection="16"/>
</connectionManagement>
</system.net>
<!-- IIS 7 handler settings -->
<system.webServer>
<security>
<requestFiltering allowDoubleEscaping="true" />
</security>
<handlers>
<clear />
<add name="Dream" path="*" verb="*" type="MindTouch.Dream.Http.HttpHandler, mindtouch.core" resourceType="Unspecified" preCondition="integratedMode" />
</handlers>
<httpProtocol>
<customHeaders>
<remove name="X-Powered-By" />
</customHeaders>
</httpProtocol>
</system.webServer>
<!-- Log4Net settings -->
<log4net>
<appender name="RollingFileAppender" type="log4net.Appender.RollingFileAppender, log4net">
<file value="..\data\logs\deki-api.log"/>
<appendToFile value="true"/>
<maximumFileSize value="10240KB"/>
<maxSizeRollBackups value="4"/>
<layout type="log4net.Layout.PatternLayout">
<conversionPattern value="%date [%thread] %-5level %logger - %message%newline"/>
</layout>
</appender>
<appender name="OutputDebugStringAppender" type="log4net.Appender.TraceAppender">
<layout type="log4net.Layout.PatternLayout">
<param name="ConversionPattern" value="%date [%thread] %-5level %logger - %message%newline"/>
</layout>
</appender>
<root>
<!-- Set logging level to ALL, FATAL, ERROR, WARN, INFO, or DEBUG -->
<level value="INFO"/>
<appender-ref ref="RollingFileAppender"/>
<appender-ref ref="OutputDebugStringAppender"/>
</root>
</log4net>
</configuration>
| Images 0 | ||
|---|---|---|
| No images to display in the gallery. |