Skip to content
Other versions

Loading…

Configuring ONLYOFFICE

This guide helps to install and configure ONLYOFFICE with OpenKM.

First find out the IP address of the computer, e.g. 192.168.1.38 Henceforth, we will use this IP for this guide.

Run the following commands to install the Docker container:

  • Download the script:
Terminal window
$ wget http://download.onlyoffice.com/docs/docs-enterprise-install.sh
  • Run the script:
Terminal window
$ bash docs-enterprise-install.sh -skiphc true -dp 8082

 Within the docker container, edit /etc/onlyoffice/documentserver/default.json. After that, the service needs to be restarted: supervisorctl restart all.

Test it in your web browser: http://192.168.1.38:8082/

Discovery**:**

Capabilities**:**

This is for validating the REST endpoints of the WOPI host (OpenKM).

  • Install it:
Terminal window
docker pull tylerbutler/wopi-validator
  • Run it:
Terminal window
docker run -it --rm tylerbutler/wopi-validator -- -w http://localhost:8080/openkm/wopi/files/80ffd1eb-a6b8-4ec2-adc1-a58b23815eaf -t <openkm token> -l 36000000

Edit the following configuration parameters in OpenKM administration:

# value samplesonline.office.action.url = http://192.168.1.38:8080/openkm/wopi/files
online.office.url = http://192.168.1.38:8082/hosting/discovery
online.office.ip = 172.19.0.2extension.extra.tab.workspace = Online Editor;/openkm/onlineOffice/onlyoffice

Parameters:

  • online.office.action.url: URL used by ONLYOFFICE Docker container to connect to OpenKM WOPI REST endpoint.
  • online.office.url: URL used by OpenKM to connect to ONLYOFFICE Docker container.
  • online.office.ip: Source IP used by ONLYOFFICE to authenticate to OpenKM.
  • extension.extra.tab.workspace: to access from the top main menu in the OpenKM user interface.

Sample URLs: