49 lines
2.4 KiB
XML
49 lines
2.4 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<configuration>
|
|
<configSections>
|
|
<section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler, log4net" />
|
|
</configSections>
|
|
<log4net>
|
|
<appender name="RollingFileAppender" type="log4net.Appender.RollingFileAppender">
|
|
<layout type="log4net.Layout.PatternLayout">
|
|
<param name="ConversionPattern" value="%d [%t] %-5p %c [%x] - %m%n" />
|
|
<conversionPattern value="%date %-5level [%thread] %logger - %message%newline" />
|
|
</layout>
|
|
<file value="/var/log/onlyoffice/documentserver/FileConverterService.log" />
|
|
<appendToFile value="true" />
|
|
<rollingStyle value="Date" />
|
|
<datePattern value="yyyyMMdd-HHmm" />
|
|
</appender>
|
|
<root>
|
|
<level value="WARN" />
|
|
<appender-ref ref="RollingFileAppender" />
|
|
</root>
|
|
</log4net>
|
|
<system.data>
|
|
<DbProviderFactories>
|
|
<clear />
|
|
<add name="MySQL Data Provider" invariant="MySql.Data.MySqlClient" description=".Net Framework Data Provider for MySQL" type="MySql.Data.MySqlClient.MySqlClientFactory, MySql.Data" />
|
|
</DbProviderFactories>
|
|
</system.data>
|
|
<connectionStrings configSource="ConnectionStrings.config" />
|
|
<appSettings file="/var/www/onlyoffice/documentserver/DocService/Settings.config">
|
|
<add key="sleeptimeout" value="5" />
|
|
<add key="sleeptimeoutiddle" value="5" />
|
|
<add key="maxconverttime" value="60" />
|
|
<add key="maxconverttimeiddle" value="300" />
|
|
<add key="maxconverttimequeuedelay" value="20" />
|
|
<add key="maxconvertiddlefiles" value="5" />
|
|
<add key="maxdownloadbytes" value="100000000" />
|
|
<!--number of processes per processor-->
|
|
<add key="maxprocesscount" value="1" />
|
|
<!--download folder-->
|
|
<add key="fileconverterservice.gc.removedtaskatonce" value="10" />
|
|
<add key="fileconverterservice.gc.runperiod" value="3600" />
|
|
<add key="fileconverterservice.percent.runperiod" value="500" />
|
|
<add key="fileconverterservice.converter.filepath" value="python3" />
|
|
<add key="fileconverterservice.converter.args" value="FileConverter.py" />
|
|
<add key="fileconverterservice.converter.errorfiles" value="error" />
|
|
<add key="fileconverterservice.converter.presentationthemesdir" value="/var/www/onlyoffice/documentserver/FileConverterService/presentationthemes" />
|
|
<add key="fileconverterservice.usewinfonts" value="false" />
|
|
</appSettings>
|
|
</configuration> |