91 lines
9.2 KiB
Plaintext
91 lines
9.2 KiB
Plaintext
<%@ Control Language="C#" Inherits="BaseContentUserControls"%>
|
|
<%@ Register Namespace="TeamLab.Controls" Assembly="__Code" TagPrefix="cc" %>
|
|
|
|
<script runat="server">
|
|
protected override void Init()
|
|
{
|
|
PageTitle = PageCaption = "Connecting Document Server to Community Server";
|
|
MetaKeyWords = "";
|
|
MetaDescription = "Learn how to connect Document Server to Community Server.";
|
|
var guides = new GuidesModel();
|
|
guides.TitleVideo = "How to install Document Server and connect it to Community Server on Windows";
|
|
(Page as BasePage).Guides = guides;
|
|
}
|
|
</script>
|
|
<div class="main_buscall_container dataBackup">
|
|
<div class="MainHelpCenter">
|
|
<h1 class="subHeaderFeaturesCaption TipsCaption">Connecting Document Server to Community Server</h1>
|
|
<cc:localizecontent runat="Server" controlname="~/Controls/Help/VariousControls/Versions/DocumentServer/DocumentServer_3_0.ascx" />
|
|
<cc:localizecontent runat="Server" controlname="~/Controls/Help/VariousControls/Versions/CommunityServer/CommunityServer_8_7.ascx" />
|
|
<div class="keyword_block">
|
|
<ul>
|
|
<li>
|
|
<cc:LocalizeContent ID="LocalizeContent3" runat="Server" ControlName="~/Controls/Help/Tags/local-server/local-server.ascx" />
|
|
</li>
|
|
<li>
|
|
<cc:LocalizeContent ID="LocalizeContent4" runat="Server" ControlName="~/Controls/Help/Tags/server-version/server-version.ascx" />
|
|
</li>
|
|
<li>
|
|
<cc:LocalizeContent ID="LocalizeContent2" runat="Server" ControlName="~/Controls/Help/Tags/community-server/community-server.ascx" />
|
|
</li>
|
|
<li>
|
|
<cc:LocalizeContent ID="LocalizeContent6" runat="Server" ControlName="~/Controls/Help/Tags/document-server/document-server.ascx" />
|
|
</li>
|
|
<li>
|
|
<cc:LocalizeContent ID="LocalizeContent8" runat="Server" ControlName="~/Controls/Help/Tags/windows-version/windows-version.ascx" />
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
|
|
<div class="video_ground video_trips">
|
|
<div class="video_text">
|
|
<div class="video_block">
|
|
<a onclick="showVideoContainer();" class="connect_document_windows"><span class="playbackbutton"></span></a>
|
|
</div>
|
|
<p>If you want to connect <b>Document Server</b> to the <b>Community Server</b> portal installed on your local or remote server, you will need to alter configuration files both on the computer with <b>Community Server</b> and <b>Document Server</b> installed. So please first make sure you have administrator access to both machines.</p>
|
|
<div class="notehelp narrownote"><b>Document Server</b> and <b>Community Server</b> must be installed on two different machines.</div>
|
|
</div>
|
|
</div>
|
|
<cc:LocalizeContent runat="Server" ControlName="~/Controls/Help/Server/Common/DocumentConnection/ExplainTheory/ExplainTheory.ascx" />
|
|
<h2 id="ConnectDocServer81">Connecting Document Server to Community Server 8.1 and higher</h2>
|
|
<p>Normally to connect <b>Document Server</b> to <b>Community Server</b> version 8.1 and later you only need to set up connection parameters in portal settings. To do that please go to <b>Settings</b> and select <b>Integration</b> - <b>Document Service</b>. Then simply fill in all the fields with the appropriate <b>Document Server</b> service addresses.</p>
|
|
<cc:LocalizeContent runat="Server" ControlName="~/Controls/Help/Server/Common/DocumentConnection/ServerCompatibility/ServerCompatibility.ascx" />
|
|
<h2 id="CSConfigFiles">Editing configuration files for Community Server</h2>
|
|
<p>In case this does not work or you are using <b>Community Server</b> earlier than version 8.1 and you are sure that the <b>Community Server</b> version is compatible with the <b>Document Server</b> version you are trying to connect (please consult the table above to see if that is so), you will need to perform the actions below, editing the configuration files.</p>
|
|
<p>First of all you need to alter the <b>web.appsettings.config</b> file which can be found in the <code>c:\Program Files\Ascensio System SIA\onlyoffice\WebStudio\</code> folder of the <b>Community Server</b> computer. Open it with a text editor and add the following lines (or change these lines accordingly, in case they are already present):</p>
|
|
<pre class="prettyprint source linenums"><code><add key="files.docservice.viewed-docs" value=".pptx|.ppsx|.pptt|.ppt|.pps|.odp|.gslides|.xlsx|.xlst|.xls|.ods|.gsheet|.csv|.docx|.doct|.doc|.odt|.gdoc|.txt|.rtf|.mht|.html|.htm|.fb2|.epub|.pdf|.djvu|.xps"/>
|
|
<add key="files.docservice.edited-docs" value=".pptx|.ppsx|.pptt|.ppt|.pps|.odp|.xlsx|.xlst|.xls|.ods|.csv|.docx|.doct|.doc|.odt|.txt|.rtf|.mht|.html|.htm|.fb2|.epub"/>
|
|
<add key="files.docservice.convert-docs" value=".ppt|.pps|.odp|.xls|.ods|.doc|.odt|.rtf|.mht|.html|.htm"/>
|
|
<add key="files.docservice.coauthor-docs" value=".pptx|.pptt|.xlsx|.xlst|.docx|.doct"/>
|
|
<add key="files.docservice.url.converter" value="http://computername/ConvertService.ashx"/>
|
|
<add key="files.docservice.url.api" value="http://computername/OfficeWeb/apps/api/documents/api.js"/>
|
|
<add key="files.docservice.url.storage" value="http://computername/FileUploader.ashx"/>
|
|
<add key="files.docservice.url.command" value="http://computername/coauthoring/CommandService.ashx"/></code></pre>
|
|
<p>Where <code>computername</code> is the address of the computer with <b>Document Server</b> installed.</p>
|
|
<p>These lines must be inserted between the <code><add key="files.uploader.chunk-size" value="5242880" /></code> and <code><add key="resources.from-db" value="true" /></code> lines.</p>
|
|
<div class="notehelp">If you are trying to connect <b>Document Server</b> to <b>Community Server</b> version <b>earlier</b> than <b>8.5</b>, you will need to add two additional lines to your <b>web.appsettings.config</b> file:
|
|
<pre class="prettyprint source linenums"><code><add key="files.docservice.new" value=".xlsx|.xlst|.xls|.ods|.gsheet|.csv|.docx|.doct|.doc|.odt|.gdoc|.txt|.rtf|.mht|.html|.htm|.fb2|.epub|.pdf|.djvu|.xps"/>
|
|
<add key="files.docservice.url.apinew" value="http://computername/coauthoring/CommandService.ashx"/></code></pre>
|
|
</div>
|
|
<p>You will also need to run the SQL script for proper work (for <b>Document Server</b> <b>3.0</b> and <b>higher</b>):</p>
|
|
<pre><code>INSERT INTO `webstudio_settings` (`TenantID`, `ID`, `UserID`, `Data`) VALUES (-1, 'a3acbfc4-155b-4ea8-8367-bbc586319553', '00000000-0000-0000-0000-000000000000', '{"NewScheme":true,"RequestedScheme":true}');
|
|
</code></pre>
|
|
<p>For <b>Document Server</b> <b>2.5</b> the following SQL script must be run (<b>without running the above script!</b>):</p>
|
|
<pre><code>DELETE FROM `webstudio_settings` WHERE `ID`='a3acbfc4-155b-4ea8-8367-bbc586319553';
|
|
</code></pre>
|
|
<h2 id="DSConfigFiles">Editing configuration files for Document Server</h2>
|
|
<p>Next the <b>web.config</b> file need to be altered. It can be found in the <code>c:\Program Files\Ascensio System SIA\ONLYOFFICE Online Editors\DocService\</code> folder of the <b>Document Server</b> computer. Open it with a text editor and add the following lines (or change these lines accordingly, in case they are already present):</p>
|
|
<pre class="prettyprint source linenums"><code><add key="editor.settings.coauthoring.url" value="http://computername:8000" />
|
|
<add key="editor.settings.spellchecker.url" value="http://computername:8080" /></code></pre>
|
|
<p>Where <code>computername</code> is the address of the computer with <b>Document Server</b> installed.</p>
|
|
<h2 id="CSConfigFiles77">Connecting Document Server 2.5 to Community Server 7.7 and earlier</h2>
|
|
<cc:localizecontent runat="Server" controlname="~/Controls/Help/VariousControls/Versions/DocumentServer/DocumentServer_2_5.ascx" />
|
|
<cc:localizecontent runat="Server" controlname="~/Controls/Help/VariousControls/Versions/CommunityServer/CommunityServer_7_7.ascx" />
|
|
<p>To connect <b>Document Server</b> <b>2.5</b> to the computer with <b>Community Server</b> <b>7.7</b> and earlier installed, you need to only edit the <b>web.appsettings.config</b> file from the <code>WebStudio</code> folder of the <b>Community Server</b> computer. Open it with a text editor and add the following lines (or change these lines accordingly, in case they are already present):</p>
|
|
<pre class="prettyprint source linenums"><code><add key="files.docservice.url.converter" value="http://computername/ConvertService.ashx"/>
|
|
<add key="files.docservice.url.api" value="http://computername/OfficeWeb/apps/api/documents/api.js"/>
|
|
<add key="files.docservice.url.storage" value="http://computername/FileUploader.ashx"/></code></pre>
|
|
<p>These are the addresses for the conversion service, editing service and storage service accordingly used with <b>Document Server</b> 2.5.</p>
|
|
<p>You do <b>not</b> need to change anything else, including altering the <b>web.config</b> file for <b>Document Server</b>.</p>
|
|
</div>
|
|
</div> |