Articles with the tag:
Close
Changelog
Close
Help Center
Document Server for Docker

Installing Integration EditionEnterprise Edition Document Server for Docker on a local server

Document Serverv.4.4 Document Server changelog

Version 4.4.3

Release date: 08/14/2017

Fixes

Document Editor

  • Fixed issues with opening some DOCX files (bug #35307);
  • Fixed the issue with the chart legend being blocked during co-editing (bug #35492).

Spreadsheet Editor

  • Fixed the issue with the shape size not changing with the help of yellow markers (bug #35451);
  • Fixed the VLOOKUP and HLOOKUP functions being case sensitive (bug #35528, DocumentServer#140).

Presentation Editor

  • Fixed the comment bug (bug #35408);
  • Fixed the bug with drag-and-dropping the chart into a title.

Version 4.4.2

Release date: 07/24/2017

New features

Spreadsheet Editor

  • Added support for more new options in sparklines (bug #35296).

Fixes

Document Editor

  • Fixed issues when the tab was set several times (bug #34923);
  • Fixed printing in Microsoft Edge (bug #35323);
  • Fixed the documentation on moving the shape by a pixel (bug #34983);
  • Fixed the special paste in fast co-editing mode (bug #35310);
  • Fixed issues with duplicates in strict co-editing mode after the special paste (bug #35312);
  • Fixed bug with moving the cursor to the beginning of the document after removing the content control;
  • Fixed minor problems with co-editing in real time (bugs #35398, #35399, #35400);
  • A lot of fixes in the existing translations (Chinese, Czech, German, Italian, Russian, Spanish), and added a new translation (Slovak).

Spreadsheet Editor

  • Fixed the Show empty cells as box in Russian (bug #35299);
  • Fixed the sparkline type in the settings window (bug #35296);
  • Hid the functions which have not yet been implemented: CUBEKPIMEMBER, CUBEMEMBER, CUBEMEMBERPROPERTY, CUBERANKEDMEMBER, CUBESET, CUBESETCOUNT, CUBEVALUE (bug #35314);
  • Fixed the JavaScript error in the conditional formatting with the function and offset (duplicate variable) (bug #35334);
  • Fixed the JavaScript error in SEARCH function (bug #35340);
  • Fixed the freeze pane shadow which had not been hiding (bug #35359);
  • Fixed showing the hidden objects;
  • Fixed the VLOOKUP cell format;
  • A lot of fixes in the existing translations (Chinese, Czech, German, Italian, Russian, Spanish), and added a new translation (Slovak).

Presentation Editor

  • Fixed changing the presentation language if no shape was selected (bug #35231);
  • Fixed the columns in the placeholder (bug #35074);
  • Fixed the connector losing shape when moving shapes in a group (bug #35317);
  • Fixed disconnecting the connector after ungrouping (bug #35316);
  • Fixed the hidden markers for the connector on a chart and an image (bug #35300);
  • Fixed the cell link reference issue after the copy-paste operation (bug #35362, DocumentServer#122);
  • A lot of fixes in the existing translations (Chinese, Czech, German, Italian, Russian, Spanish), and added a new translation (Slovak).

Mobile Document Editor

  • Removed saving for the show snap lines option.

Mobile Presentation Editor

  • Removed saving for the show snap lines option.

x2t

ODT

  • Fixed saving some files to ODT (bug #35389).

TXT

  • Fixed the empty TXT on opening (bug #35396).

XLS

  • Fixed the custom shape for the connectors.

ODS

  • Fixed the issue with margins;
  • Fixed the converted named range with the formulas.

PPTX

  • Fixed the audio WAV files;
  • Fixed the old OLE standard.

PPT

  • Fixed the previous user pictures;
  • Fixed the picture read stream.

Document Builder

  • Fixed the problems with printing and saving to PDF.

Version 4.4.1

Release date: 07/05/2017

New features

Document Editor

  • Added the Special Paste feature;
  • Added the rich text content support;
  • Added translations for the paragraph styles;
  • Added the comments display in the view mode;
  • Added the option to hide the resolved comments;
  • Added the option to specify custom columns.

Spreadsheet Editor

  • Added the support for the functions with conditional formatting;
  • Added the possibility to specify a custom delimiter for the CSV file import/export;
  • Added support for the ACOT, ACOTH, ARABIC, BASE, BETA.DIST, BETA.INV, BETADIST, BINOM.DIST, BINOM.INV, CEILING.MATH, CEILING.PRECISE, CHIDIST, CHIINV, CHISQ.DIST, CHISQ.DIST.RT, CHISQ.INV, CHISQ.INV.RT, COMBINA, CONCAT, CONFIDENCE.NORM, CONFIDENCE.T, COT, COTH, CSC, CSCH, DECIMAL, EXPON.DIST, F.DIST, F.DIST.RT, F.INV, F.INV.RT, FDIST, FINV, FLOOR.MATH, FLOOR.PRECISE, GAMMA, GAMMA.DIST, GAMMA.INV, GAMMALN.PRECISE, GAMMADIST, GAMMAINV, GAUSS, IFNA, IMCOSH, IMCOT, IMCSC, IMCSCH, IMSEC, IMSECH, IMSINH, IMTAN, ISO.CEILING, LOGNORM.DIST, LOGNORM.INV, NUMBERVALUE, PERCENTILE.EXC, PERCENTILE.INC, PERCENTRANK.EXC, PERCENTRANK.INC, RANK, RANK.AVG, RANK.EQ, SEC, SECH, T.DIST, T.DIST.2T, T.DIST.RT, T.INV, T.INV.2T, TDIST, TINV, XOR functions;
  • The hidden rows are now excluded from copying, autofilling, formatting etc.;
  • Updated the active cell color;
  • Changed the frozen pane display: now it has shadow;
  • Added translations for the cell styles;
  • Added the possibility to search and replace using the data from the selection;
  • Added the option to hide the resolved comments;
  • Added the possibitity to specify bullets and numbering for the text within a shape;
  • Added the possibility to specify columns for the text areas;
  • Added the possibility to add the connectors for the shapes;
  • Added the support for Shift+Delete, Ctrl+Insert and Shift+Insert keyboard shortcuts for cut/paste operations.

Presentation Editor

  • Added the possibility to connect shapes using the lines;
  • Added the possibility to specify columns for the text areas;
  • Added the possibitity to specify bullets and numbering for the text within a shape;
  • Added the spellchecker;
  • Added the possibitity to download the file as ODP.

Plugins

  • Added the new plugin window type (without borders, shadows, buttons).

x2t

  • Dramatically increased the speed for opening the OOXML files: 200% faster in Windows, 20% faster in Linux;
  • Enhanced the conversion from/to RTF format;
  • Enhanced support for password protected OOXML and binary Microsoft files (DOC, XLS);
  • Added support for password protected PPT files.

Fixes

Spreadsheet Editor

Version 4.3.6

Release date: 06/14/2017

Fixes

Rebranding

  • Fixed the problems with the white-label logos.

Version 4.3.5

Release date: 06/05/2017

New features

Document Editor

  • Added the showReviewChanges option to the configuration, which automatically opens the review changes panel.

Fixes

Document Editor

  • Disabled the version history for PDF, DJVU and XPS files;
  • Fixed the problem with DropCap fonts.

Spreadsheet Editor

  • Limited the number of cell styles to 1000 (bug #113);
  • Fixed adding spacing when copying data from MS Excel;
  • Fixed the chart axis position.

Back-end

  • Fixed crash on Windows Server 2008 R2.

Version 4.3.4

Release date: 05/16/2017

Fixes

All editors

  • Fixed the opening error when the SDK loads before the fonts;
  • Fixed the error of the shape display without the gradient angle (bug #34887);
  • Editors now show correct limited functionality notification for IE 9 and IE 10.

Back-end

  • Fixed the error with user data from JWT usage;
  • Added logs for the spellchecker checkHealth.

Version 4.3.3

Release date: 04/28/2017

New features

Document Editor

  • Added the Kazakh language for the spellchecker.

Docker version

  • Added the possibility to use PostgreSQL storage as a volume.

Fixes

Document Editor

  • Fixed the aligning of the Footnotes setting in Firefox (bug #34840);
  • Fixed the colors for shapes (bug #34785);
  • Fixed the problem with the shapes inside a table.

Version 4.3.2

Release date: 04/17/2017

New features

Plugins

Fixes

All editors

  • Minor updates to the existing translations;
  • Fixed the Plugins icon at the @2x resolution (bug #34681).

Document Editor

  • Fixed moving the image to another page header (bug #34637);
  • Fixed removing a shape if undo of grouping operation is performed (bug #34654).

Spreadsheet Editor

  • Fixed the decreasing size of a 3D chart (bug #34685);
  • Fixed the problem which appeared when a formula was pasted;
  • Fixed the tooltip position at the @2x resolution (bug #34678);
  • Fixed the problem with shrink to fit (bug #34758).

Presentation Editor

  • Fixed the problem appearing when a comment was removed (bug #34773).

Mobile Web Editors

  • Fixed the problem with opening the viewer in the open source version.

Back-end

  • Fixed the infinite loop with URI.parse (bug #34716);
  • Fixed the connection leak on healthCheck.

DOCX

  • Fixed the issue with the DOCX file damaged when a chart was copied inside a shape (bug #34695).

document-server-integration

  • Fixed the problem with the Go Back button.

Windows installation

  • Fixed the problem with downloading the binaries from SourceForge.

Version 4.3.1

Release date: 04/06/2017

Fixes

Spreadsheet Editor

  • Fixed the error when the files got broken if you tried to change the style of an unsupported chart (bug #34650);
  • Fixed the stack error while copying a big array of formula data;
  • Fixed the error of rendering a 3D diagram in a small area (bug #34632);
  • Fixed the error when chart range was changed while applying a preset.

Version 4.3

Release date: 04/03/2017

New features

All editors

  • Added full support of high-DPI monitors;
  • Added the possibility to set alternative text for shapes.

Document Editor

  • Added the undo option for the Fast co-editing mode;
  • Added the All changes saved caption in the bottom toolbar;
  • Added an option to add and edit footnotes;
  • Added new languages for spellchecker (43 in total).

Spreadsheet Editor

  • Added support for the AVERAGEIFS, COUNTIFS, SUMIFS functions;
  • Refactoring and improvements for formulas;
  • Added a totally new Cell Format window with more options;
  • Added the possibility to use sort options window while sorting ranges;
  • Added the sorting direction for the filter buttons;
  • Added the filter condition at statistical information;
  • Added the special paste feature;
  • Added the support for the surface chart;
  • Added the new cell border styles (11 in total).

Presentation Editor

  • Added the undo option for the Fast co-editing mode.

Mobile Web Editors

  • Completely new mobile web editors.

Back-end

  • Added the possibility to run documentserver on a custom port;
  • Added the possibility to check for and drop idle users;
  • Added the possibility to perform forced save (by timeout and using the button).

x2t

  • Optimization and speed-up;
  • Better support for all formats, including (but not limited to) the ones listed below:

    DOC

    • Support for the page backgrounds.

    XLS

    • Support for data validation;
    • Support for decryption.

    ODF

    • Support for global document settings;
    • SVG refactoring;
    • Support for the page backgrounds (image, pattern, gradient);
    • Support for the smart art conversion;
    • Support for sheet/workbook views;
    • Support OLE and other embedded objects conversion.

    RTF

    • Added hyperlink text replacement generation if it is absent;
    • Added support for office digital signatures;
    • Added extended drawings;
    • Added custom shapes;
    • Added support for the text when drawing shapes.

Plugins

  • A lot of new plugin features.

Fixes

Document Editor

  • Fixed the issue with drag'n'dropping a table inside a footnote (bug #33548);
  • Fixed the issue with cropping of shape group (bug #33110).

Spreadsheet Editor

  • Fixed the issue with the absolute reference when inserting a new row (ONLYOFFICE/DocumentServer#41);
  • Fixed the issue with the onDocumentStateChange event (ONLYOFFICE/DocumentServer#88);
  • Fixed the issue with the formula translations (ONLYOFFICE/DesktopEditors#23);
  • Fixed the issue with the password-protected XLSX (ONLYOFFICE/DesktopEditors#24);
  • Fixed the issue with a non-breaking space (ONLYOFFICE/DesktopEditors#26);
  • Fixed the issue with the AVERAGEA function which has text format;
  • Fixed the issue with the broken workbook after copying the list (bug #33588);
  • Fixed the issue with the formula recalculation by F4 hotkey (bug #32901);
  • Fixed the issue with SUMIFS function (bug #33602);
  • Fixed the issue with the image size when inserting (bug #33604);
  • Fixed the issue with the sparkline zero values (bug #33612);
  • Fixed the issue with changing the number format when changing the regional format (bug #31395);
  • Fixed the issue with replacing the formula delimiters (bug #33608);
  • Fixed the issue with cell size while drag'n'dropping (bug #33607);
  • Fixed the issue with the cursor size in @2x resolution (bug #33606);
  • Many other minor and major bugfixes.

Version 4.2.11

Release date: 03/13/2017

New features

Editors

  • Added the possibility to completely hide About and the left toolbar (available to the licensed users only).

Fixes

Back-end

  • Fixed the issue when the JWT token without the permissions field crashes downloadAs.

Version 4.2.10

Release date: 02/20/2017

Fixes

Embedded viewers

  • Fixed the default top position for the toolbar.

Licensing

  • Fixed the availability of the chat and comments buttons for the editors without the license file.

Back-end

  • Fixed the problem with JWT access tokens.

Version 4.2.9

Release date: 02/14/2017

New Features

Spreadsheet Editor

  • The Polish language translations for functions.

Fixes

Spreadsheet Editor

  • Fixed the wrong order of elements in equations (bug #34029).

Version 4.2.8

Release date: 02/06/2017

Fixes

Spreadsheet Editor

  • Fixed entering the characters with diacritical symbols (bug #33908)
  • Fixed the horizontal scroll when using a trackpad (bug #27197)

Plugins

  • Allowed the interface customization using the plugins.

Back-end

  • Minor fixes for logging and status codes.

Version 4.2.7

Release date: 02/01/2017

Fixes

All Editors

  • Prevent editors from performing the save operation if there are no changes to save.

Spreadsheet Editor

  • Fixed error occurring when assembling files with Ranges in some rare cases.

Document conversion

  • Fixed errors occurring when converting from the XLSX to the CSV format.

Back-end

  • Fixed server compilation if the PRODUCT_VERSION and BUILD_NUMBER variables are not defined.

Version 4.2.5

Release date: 01/16/2017

Fixes

All Editors

  • Fixed a rare problem occurring when saving a file with a specific chart type.

Presentation Editor

  • Fixed a problem occurring when saving a file with the notes copied from Document Editor;
  • Fixed a problem occurring when saving a file with a chart copied from Presentation Editor.

Back-end

  • Fixed a problem occurring when opened connection was not closed with close command received while performing some asynchronous actions.

Version 4.2.4

Release date: 01/09/2017

Fixes

Document Editor

  • Fixed the problem with the changes missing when several users enter the text at the same time (bug #33726)
  • Fixed the bug with the cursor positioning after the InsertContent function is used.

Spreadsheet Editor

  • Fixed the Match formula return value in some cases (bug #33735).

Back-end

  • Fixed the missing Asana-Math font in the default installation, needed for equations.

Version 4.2.3

Release date: 12/23/2016

Fixes

Spreadsheet Editor

  • Fixed the usage of functions with references to the other sheets.

Presentation Editor

  • Fixed the timeout error appearing while printing some PPTX files.

Document conversion

  • Fixed the problem with conversion to PDF format when only the first document page was converted.

Licensing

  • Without a valid license file the chat and comment buttons are unavailable, as well as editing the customer information and the logo image at the editor header is not allowed.

Version 4.2.2

Release date: 12/21/2016

Fixes

Presentation Editor

  • Fixed the problem with opening password-protected presentations.

Version 4.2.1

Release date: 12/06/2016

Fixes

Document Editor

  • Fixed the broken Insert number of page button;
  • Fixed the problem with the last hieroglyph duplicate;
  • Fixed the problem with changing the chart type from 2D to 3D (bug #33284).

Spreadsheet Editor

  • Fixed JavaScript error when adding a chart in IE and Edge (bug #33597);
  • Fixed the problem with an empty cell when changing sparklines (bug #33598).

x2t

  • Improved compatibility with the DOC format.

Version 4.2.0

Release date: 12/01/2016

New Features

All Editors

  • Added the possibility to set a dash type for shapes;
  • Redesigned the embedded viewers;
  • Better support of HiDPI systems;
  • Update bootstrap to version 3.3.7.

Document Editor

  • Added the possibility to set Fit to Page or Fit to Width as a default zoom value;
  • Ability to insert number of pages into the document;
  • Added the possibility to open and edit footnotes;
  • Remade version history. Added the possibility to hide minor features.

Spreadsheet Editor

  • Added the possibility to insert equations in Spreadsheet Editor;
  • Added the possibility to open and edit sparklines;
  • Added a new SUMIFS function;
  • Added the possibility to select data from the drop-down menu in the context menu;
  • Added a multiselection support;
  • Added the rotation of 3D charts;
  • Updated and improved the visual styles for all chart types;
  • Brought back the Freeze Panes option in the View Settings menu;
  • Added the new algorithm for calculating a cell height.

Presentation Editor

  • Added the possibility to set Fit to Width as a default zoom value;
  • Added the possibility to insert equations in Presentation Editor.

Back-end

  • Updated Node.js from version 4.2.0 to the current LTS release: 6.9.1.

Fixes

Spreadsheet Editor

x2t

Version 4.1.8

Release date: 11/03/2016

Fixes

License

  • Minor fix for a better license compatibility with the Hide Menu functionality.

Version 4.1.7

Release date: 11/01/2016

Fixes

Editors

  • Fixed a JavaScript error when opening a document in IE 9 and IE 10.

Version 4.1.6

Release date: 10/26/2016

New Features

Editors

  • Added the possibility to hide the menu bars in the editors using the config.

Version 4.1.5

Release date: 10/13/2016

Fixes

Editors

  • Fixed copy-paste on MacOS Sierra.

Plugins

  • Fixed the image load and OLE problems;
  • Viewers do not show plugins any more.

Version 4.1.4

Release date: 10/07/2016

Fixes

Back-end

  • ipfilter can use dns to lookup.

Version 4.1.3

Release date: 09/28/2016

New Features

Plugins

  • Sample plugins are enabled by default.

Version 4.1.2

Release date: 09/22/2016

New Features

Back-end

  • Switched to using PostgreSQL instead of MySQL on back-end;
  • Added the possibility to filter users using ipfilter.

Editors

  • Added whole new code handling text input. Better support for languages which use hieroglyphs;
  • Added whole new copy-paste which is better compatible with external sources.

Changes

  • Improvements in opening of all supported formats.

Fixes

  • A lot small bugfixes in all product modules.

Version 4.0.3

Release date: 08/04/2016

Changes

  • Added the possibility to use full-toolbar mode in the editors with a standard license. Previously the users of standard license were forced to use compact toolbar only.

Version 4.0.2

Release date: 08/03/2016

Fixes

Spreadsheet Editor

  • Fixed losing comments on second and subsequent worksheets (bug #32895);
  • Fixed losing empty values of data with format different from General in the autofilter (bug #32805).

document-server-integration

  • Minor fixes.

Introduction

Integration EditionEnterprise Edition allows you to install Document Server on your local server and integrate online editors with your web application.

Document Server is an online office suite comprising viewers and editors for texts, spreadsheets and presentations, fully compatible with Office Open XML formats: .docx, .xlsx, .pptx and enabling collaborative editing in real time.

Functionality

  • Document Editor
  • Spreadsheet Editor
  • Presentation Editor
  • Documents application for iOS
  • Collaborative editing
  • Hieroglyph support
  • Support for all the popular formats: DOC, DOCX, TXT, ODT, RTF, ODP, EPUB, ODS, XLS, XLSX, CSV, PPTX, HTML

Integrating it with Community Server you will be able to:

  • view and edit files stored on Drive, Box, Dropbox, OneDrive, OwnCloud connected to ONLYOFFICE;
  • share files;
  • embed documents on a website;
  • manage access rights to documents.

This guide will show you how to install Document Server Docker version to your machine.

System requirements

  • CPU
    dual core 2 GHz or better
  • RAM
    4 GB or more
  • HDD
    at least 40 GB of free space
  • Additional Requirements
    at least 2 GB of swap
  • OS
    amd64 Linux distribution with kernel version 3.10 or later
  • Additional Requirements
    • Docker: version 1.10 or later

Installing Document Server

You need the latest Docker version installed. If you do not have it, please see the Installation section on Docker website to learn how to get it.
Docker specifies Google DNS servers by default. If your Document Server is not going to have access to the Internet, we recommend that you change the default Docker DNS address to the address of your local DNS server. To do that go to the /etc/default/docker file and change the IP address in the following line to the IP address of a DNS server in your local network:
docker_OPTS="--dns 8.8.8.8"

After you have Docker installed, run it and execute the following command:

sudo docker run -i -t -d -p 80:80 --restart=always onlyoffice/documentserver
sudo docker run -i -t -d -p 80:80 --restart=always onlyoffice/documentserver
sudo docker run -i -t -d -p 80:80 --restart=always onlyoffice/documentserver-integration

Use this command if you wish to install Document Server separately. To install Document Server integrated with Community and Mail Servers, refer to the corresponding instructions below.

By default Document Server listens to the incoming connections using port 80. Starting with version 4.3 you can change the port for Document Server if you plan to use it instead of the default one. This can be easily done changing the mapping port during the installation:
sudo docker run -i -t -d -p <PORT_NUMBER>:80 --restart=always onlyoffice/documentserver
sudo docker run -i -t -d -p <PORT_NUMBER>:80 --restart=always onlyoffice/documentserver
sudo docker run -i -t -d -p <PORT_NUMBER>:80 --restart=always onlyoffice/documentserver-integration
Where <PORT_NUMBER> is the number of port you want Document Server to use.

This will install Document Server and all the dependencies it needs (the list of what is being done by the script can be found here).

Storing data outside containers

All the data are stored in the specially-designated directories, data volumes, at the following location:

  • /var/log/onlyoffice for Document Server logs
  • /var/www/onlyoffice/Data for certificates
  • /var/lib/onlyoffice for file cache
  • /var/lib/postgresql for database
We recommend We strongly recommend that you store the data outside the Docker containers on the host machine as it allows you to easily update Document Server once the new version is released without losing your data.

To get access to your data located outside the container, you need to mount the volumes. It can be done by specifying the -v option in the docker run command.

sudo docker run -i -t -d -p 80:80 --restart=always \
    -v /app/onlyoffice/DocumentServer/logs:/var/log/onlyoffice  \
    -v /app/onlyoffice/DocumentServer/data:/var/www/onlyoffice/Data  \
    -v /app/onlyoffice/DocumentServer/lib:/var/lib/onlyoffice \
    -v /app/onlyoffice/DocumentServer/db:/var/lib/postgresql  onlyoffice/documentserver
sudo docker run -i -t -d -p 80:80 --restart=always \
    -v /app/onlyoffice/DocumentServer/logs:/var/log/onlyoffice  \
    -v /app/onlyoffice/DocumentServer/data:/var/www/onlyoffice/Data  \
    -v /app/onlyoffice/DocumentServer/lib:/var/lib/onlyoffice \
    -v /app/onlyoffice/DocumentServer/db:/var/lib/postgresql  onlyoffice/documentserver
sudo docker run -i -t -d -p 80:80 --restart=always \
    -v /app/onlyoffice/DocumentServer/logs:/var/log/onlyoffice  \
    -v /app/onlyoffice/DocumentServer/data:/var/www/onlyoffice/Data  \
    -v /app/onlyoffice/DocumentServer/lib:/var/lib/onlyoffice \
    -v /app/onlyoffice/DocumentServer/db:/var/lib/postgresql  onlyoffice/documentserver-integration
Please note, that in case you are trying to mount the folders which are not yet created, these folders will be created but the access to them will be limited. You will need to change their access rights manually.

Normally, you do not need to store container data because the container operation does not depend on its state. Saving data will be useful:

  • for easy access to container data, such as logs;
  • to remove the limit on the size of the data inside the container;
  • when using services launched outside the container such as PostgreSQL, Redis, RabbitMQ.

Running Document Server using HTTPS

sudo docker run -i -t -d -p 443:443 --restart=always \
-v /app/onlyoffice/DocumentServer/data:/var/www/onlyoffice/Data  onlyoffice/documentserver
sudo docker run -i -t -d -p 443:443 --restart=always \
-v /app/onlyoffice/DocumentServer/data:/var/www/onlyoffice/Data  onlyoffice/documentserver
sudo docker run -i -t -d -p 443:443 --restart=always \
-v /app/onlyoffice/DocumentServer/data:/var/www/onlyoffice/Data  onlyoffice/documentserver-integration

Access to the onlyoffice application can be secured using SSL so as to prevent unauthorized access. While a CA certified SSL certificate allows for verification of trust via the CA, self signed certificates can also provide an equal level of trust verification as long as each client takes some additional steps to verify the identity of your website. Below the instructions on achieving this are provided.

To secure the application via SSL basically two things are needed:

  • Private key (.key)
  • SSL certificate (.crt)

So you need to create and install the following files:

/app/onlyoffice/DocumentServer/data/certs/onlyoffice.key
/app/onlyoffice/DocumentServer/data/certs/onlyoffice.crt

When using CA certified certificates, these files are provided to you by the CA. When using self-signed certificates you need to generate these files yourself. Skip the following section if you are have CA certified SSL certificates.

Generation of self signed certificates

Generation of self-signed SSL certificates involves a simple 3 step procedure

STEP 1: Create the server private key
openssl genrsa -out onlyoffice.key 2048
STEP 2: Create the certificate signing request (CSR)
openssl req -new -key onlyoffice.key -out onlyoffice.csr
STEP 3: Sign the certificate using the private key and CSR
openssl x509 -req -days 365 -in onlyoffice.csr -signkey onlyoffice.key -out onlyoffice.crt

You have now generated an SSL certificate that's valid for 365 days.

Strengthening the server security

This section provides you with instructions to strengthen your server security.

To achieve this you need to generate stronger DHE parameters.

openssl dhparam -out dhparam.pem 2048
Installation of the SSL certificates

Out of the four files generated above, you need to install the onlyoffice.key, onlyoffice.crt and dhparam.pem files at the onlyoffice server. The CSR file is not needed, but do make sure you safely backup the file (in case you ever need it again).

The default path that the onlyoffice application is configured to look for the SSL certificates is at /var/www/onlyoffice/Data/certs, this can however be changed using the SSL_KEY_PATH, SSL_CERTIFICATE_PATH and SSL_DHPARAM_PATH configuration options.

The /var/www/onlyoffice/Data/ path is the path of the data store, which means that you have to create a folder named certs inside /app/onlyoffice/DocumentServer/data/ and copy the files into it and as a measure of security you will update the permission on the onlyoffice.key file to only be readable by the owner.

mkdir -p /app/onlyoffice/DocumentServer/data/certs
cp onlyoffice.key /app/onlyoffice/DocumentServer/data/certs/
cp onlyoffice.crt /app/onlyoffice/DocumentServer/data/certs/
cp dhparam.pem /app/onlyoffice/DocumentServer/data/certs/
chmod 400 /app/onlyoffice/DocumentServer/data/certs/onlyoffice.key

And restart Docker container:

sudo docker restart {{DOCUMENT_SERVER_ID}}

You are now just one step away from having our application secured.

Available configuration parameters
Please refer the docker run command options for the `--env-file` flag where you can specify all required environment variables in a single file. This will save you from writing a potentially long docker run command.

Below is the complete list of parameters that can be set using environment variables.

  • ONLYOFFICE_HTTPS_HSTS_ENABLED: Advanced configuration option for turning off the HSTS configuration. Applicable only when SSL is in use. Defaults to true.
  • ONLYOFFICE_HTTPS_HSTS_MAXAGE: Advanced configuration option for setting the HSTS max-age in the onlyoffice NGINX vHost configuration. Applicable only when SSL is in use. Defaults to 31536000.
  • SSL_CERTIFICATE_PATH: The path to the SSL certificate to use. Defaults to /var/www/onlyoffice/Data/certs/onlyoffice.crt.
  • SSL_KEY_PATH: The path to the SSL certificate private key. Defaults to /var/www/onlyoffice/Data/certs/onlyoffice.key.
  • SSL_DHPARAM_PATH: The path to the Diffie-Hellman parameter. Defaults to /var/www/onlyoffice/Data/certs/dhparam.pem.
  • SSL_VERIFY_CLIENT: Enable verification of client certificates using the CA_CERTIFICATES_PATH file. Defaults to false.
  • POSTGRESQL_SERVER_HOST: The IP address or the name of the host where the PostgreSQL server is running.
  • POSTGRESQL_SERVER_PORT: The PostgreSQL server port number.
  • POSTGRESQL_SERVER_DB_NAME: The name of a PostgreSQL database to be created on the image startup.
  • POSTGRESQL_SERVER_USER: The new user name with superuser permissions for the PostgreSQL account.
  • POSTGRESQL_SERVER_PASS: The password set for the PostgreSQL account.
  • RABBITMQ_SERVER_HOST: The IP address or the name of the host where the RabbitMQ server is running.
  • RABBITMQ_SERVER_USER: The RabbitMQ server user name.
  • RABBITMQ_SERVER_PASS: The password set for the RabbitMQ account.
  • REDIS_SERVER_HOST: The IP address or the name of the host where the Redis server is running.
  • REDIS_SERVER_PORT: The Redis server port number.
  • NGINX_WORKER_PROCESSES: Defines the number of NGINX worker processes.
  • NGINX_WORKER_CONNECTIONS: Sets the maximum number of simultaneous connections that can be opened by a NGINX worker process.

Installing Document Server integrated with Community and Mail Servers

Document Server is a part of ONLYOFFICE Community Edition that comprises also Community Server and Mail Server. In case you want to install all of them and integrate with each other, read these instructions.

Alternative ways to install Document Server

Alternatively, you can use an automatic installation script to install the whole Community Edition at once. For the mail server correct work you need to specify its hostname yourdomain.com.

STEP 1: Download the installation script file

Assuming you have docker-compose installed, execute the following command:

wget http://download.onlyoffice.com/install/opensource-install.sh
STEP 2: Install Community Edition

Run the following command to do that:

bash opensource-install.sh -md yourdomain.com

Or you can use docker-compose to install the whole Community Edition at once. See the instructions here on how to do that.

Registering your Integration EditionEnterprise Edition version

If you bought Integration EditionEnterprise Edition and received the license.lic file, you can place it to your installation to obtain the software full version.

When you are using the docker container, the license.lic file can be placed to any folder (e.g. /app/onlyoffice/DocumentServer/data/license.lic), but you will need to mount this folder when the container starts:

docker run -itd -p 80:80 --restart=always \
-v /app/onlyoffice/DocumentServer/data:/var/www/onlyoffice/Data \
onlyoffice/documentserver
docker run -itd -p 80:80 --restart=always \
-v /app/onlyoffice/DocumentServer/data:/var/www/onlyoffice/Data \
onlyoffice/documentserver-integration

After that your version of Integration EditionEnterprise Edition will become registered and full-featured.

Download Best editors on your website Let your site users view, edit and collaborate
on all types of text, spreadsheet and presentation files
You Might Also Like This:
Close