Configuring ONLYOFFICE
This guide helps install and configure ONLYOFFICE with OpenKM.
ONLYOFFICE installation
Section titled “ONLYOFFICE installation”First, find 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:
$ wget http://download.onlyoffice.com/docs/docs-enterprise-install.sh- Run the script:
$ bash docs-enterprise-install.sh -skiphc true -dp 8082Configuration
Section titled “Configuration”Within the Docker container, edit /etc/onlyoffice/documentserver/default.json. After that, the service needs to be restarted: supervisorctl restart all.
ONLYOFFICE access
Section titled “ONLYOFFICE access”Test it in your web browser: http://192.168.1.38:8082/
Discovery**:**
- Open your web browser and run the following URL: http://192.168.1.38:8082/hosting/discovery
Capabilities**:**
- Open your web browser and run the following URL: http://192.168.1.38:8082/hosting/capabilities
WOPI validator
Section titled “WOPI validator”This is for validating the REST endpoints of the WOPI host (OpenKM).
- Install it:
docker pull tylerbutler/wopi-validator- Run it:
docker run -it --rm tylerbutler/wopi-validator -- -w http://localhost:8080/openkm/wopi/files/80ffd1eb-a6b8-4ec2-adc1-a58b23815eaf -t <openkm token> -l 36000000OpenKM configuration
Section titled “OpenKM configuration”Edit the following configuration parameters from OpenKM administration:
# value samplesonline.office.action.url = http://192.168.1.38:8080/openkm/wopi/filesonline.office.url = http://192.168.1.38:8082/hosting/discoveryonline.office.ip = 172.19.0.2extension.extra.tab.workspace = Online Editor;/openkm/onlineOffice/onlyofficeParameters:
- 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 it from the top main menu in the OpenKM user interface.
Sample URLs:
- http://localhost:8080/openkm/onlineOffice/onlyoffice?uuid=02090e71-8283-43d7-be2a-d6f141c3f8b0
- http://192.168.1.38:8080/openkm/onlineOffice/onlyoffice?uuid=02090e71-8283-43d7-be2a-d6f141c3f8b0
- http://192.168.1.38:8080/openkm/onlineOffice/onlyoffice?uuid=02090e71-8283-43d7-be2a-d6f141c3f8b0&lang=en-gb