Skip to content

ONLYOFFICE

In this article:

Information

ONLYOFFICE is an open-source office suite for collaborative document editing. It includes editors for text documents, spreadsheets, and presentations that support simultaneous multi-user collaboration. An ONLYOFFICE server is suitable for corporate teams, educational institutions, and organizations in need of a secure office solution.

ONLYOFFICE. Main Features

  • Real-time Document Editing: Full-featured editors for DOCX, XLSX, PPTX with collaborative editing capabilities;
  • Compatibility with Microsoft Office Formats: Complete support for MS Office formats, including complex formatting;
  • Collaborative Editing: Simultaneous document editing by multiple users with change tracking;
  • Embedded Comments and Chat: Tools for discussing documents directly within the editor interface;
  • Version Control: Tracking of changes history with the ability to revert to previous versions;
  • Plugins and Integrations: Extending functionality through plugins and integration with popular storage systems;
  • Security: Support for JWT tokens to protect API and data encryption during transmission;
  • API for Developers: REST API for integrating with custom applications;
  • Mobile Support: Adaptive interface for tablets and smartphones.

Deployment Features

ID Compatible OS VM BM VGPU GPU Min CPU (Cores) Min RAM (Gb) Min HDD/SDD (Gb) Active
375 Ubuntu 22.04 + + - - 2 8 40 ORDER
  • Containerized deployment - the system comes with Docker and pre-configured containers for quick setup.
  • Key Containers:
    • onlyoffice-docs - main ONLYOFFICE container;
    • nginx-nginx-1 - Nginx web server with SSL support via Certbot (jonasal/nginx-certbot:latest).
  • Network Configuration:
    • External Ports: 80 (HTTP), 443 (HTTPS);
    • Internal OnlyOffice Port: 8080 (forwarded to host: 0.0.0.0:8080->80/tcp);
    • Automatic acquisition of SSL certificates through Let's Encrypt.
  • Key Directories:
    • /etc/onlyoffice - configuration files for ONLYOFFICE inside the container;
    • /var/lib/onlyoffice - application data;
    • /var/log/onlyoffice - system operation logs;
    • /var/www/onlyoffice - root directory of the web application;
    • /var/www/onlyoffice/documentserver - main Document Server directory.

Note

Unless otherwise stated, the latest stable version of OnlyOffice Document Server from the official project repository is installed by default.

Getting Started After Deploying ONLYOFFICE

After payment for the order to the email specified during registration, a notification about server readiness will be sent. It will include the VPS IP address as well as login and password for connection. Our company's clients manage equipment through the server management panel and APIInvapi.

Authorization data can be found in the Information >> Tags tab of the server control panel or in the sent email:

  • Link to access ONLYOFFICE web interface panel: in the webpanel tag;
  • Login and Password for managing the server: sent via email upon server delivery.

Access to Web Interface

Checking ONLYOFFICE Functionality

  1. Open a web browser and go to the link from the webpanel tag;
  2. You should see the ONLYOFFICE welcome page:

  3. To check editor functionality, use the built-in examples (see "Enabling Examples for Testing" section).

Important

ONLYOFFICE is a server application for integrating document editors into other systems. Full functionality requires integration with a document management system (Nextcloud, ownCloud, etc.) or using test examples.

Checking Service Status

To check the status of containers, run the command on the server:

docker ps
You should see two running containers:

CONTAINER ID   IMAGE                          STATUS        PORTS                    NAMES
527cd331a316   jonasal/nginx-certbot:latest   Up 19 hours                           nginx-nginx-1
e32700b1ac75   onlyoffice/documentserver      Up 19 hours   0.0.0.0:8080->80/tcp    onlyoffice-docs

JWT Secret Configuration

Viewing Current JWT Secret

The JWT secret is used for protecting the Document Server API. To view its current value:

sudo docker exec e32700b1ac75 /var/www/onlyoffice/documentserver/npm/json -f /etc/onlyoffice/documentserver/local.json 'services.CoAuthoring.secret.session.string'
By default, it's set to: change_me

Structure of JWT Tokens

ONLYOFFICE uses three types of JWT secrets for different purposes:

  • secret.inbox.string - for incoming requests from external systems to ONLYOFFICE;
  • secret.outbox.string - for outgoing requests from ONLYOFFICE to external systems;
  • secret.session.string - for internal sessions and interactions between components.

Important for Security

By default, all three secrets have the value change_me. It's strongly recommended to change them to unique values to ensure your installation's security.

Changing JWT Secrets

To change JWT secrets, follow these steps:

  1. Create a backup of the configuration:
    docker exec onlyoffice-docs cp /etc/onlyoffice/documentserver/local.json /etc/onlyoffice/documentserver/local.json.backup
    
  2. Log into the OnlyOffice container:
    docker exec -it onlyoffice-docs /bin/bash
    
  3. Edit the configuration file:
    nano /etc/onlyoffice/documentserver/local.json
    
  4. Find the services.CoAuthoring.secret section and change values:
    "secret": {
      "inbox": {
        "string": "your_unique_secret_for_incoming_requests"
      },
      "outbox": {
        "string": "your_unique_secret_for_outgoing_requests"
      },
      "session": {
        "string": "your_unique_secret_for_sessions"
      }
    }
    
  5. Save the file and exit the editor (Ctrl+X, then Y, then Enter);
  6. Restart the container to apply changes:
    docker restart onlyoffice-docs
    
  7. Check that the service started correctly:
    docker logs onlyoffice-docs --tail 100
    

Tip

  • Use a reliable password generator for creating JWT secrets. Recommended length is at least 32 characters;
  • You can use this command to generate a random secret: openssl rand -base64 32;
  • If you are integrating ONLYOFFICE with an external system, use the same secret in both systems.

Enabling Examples for Testing

ONLYOFFICE includes built-in examples for testing document editors. By default, they are disabled.

Activating Examples

To enable test examples, execute the following commands:

Start example service:

sudo docker exec e32700b1ac75 sudo supervisorctl start ds:example
Configure automatic startup of examples on container boot:

sudo docker exec e32700b1ac75 sudo sed 's,autostart=false,autostart=true,' -i /etc/supervisor/conf.d/ds-example.conf
After executing the commands:

  1. Open in a browser: https://your-domain/welcome/;
  2. You will see a page with editor examples;
  3. Click on any document type to test:
    • Document - for creating text documents;
    • Spreadsheet - for creating spreadsheets;
    • Presentation - for creating presentations;
    • PDF form - for working with PDF forms.

Note

Examples are intended only for testing and demonstration of capabilities. For productive use, integrate the Document Server with a document management system.

Note

Detailed information on integration with specific systems is available in ONLYOFFICE official documentation.

Ordering a server with ONLYOFFICE using the API

To install this software using the API, follow these instructions


Some of the content on this page was created or translated using AI.

question_mark
Is there anything I can help you with?
question_mark
AI Assistant ×