Skip to main content

OnlyOffice Online Editing

Note

The default document online preview service provided by HAP is based on OnlyOffice (mingdaoyun-doc).

Starting from v7.4.0, HAP supports enabling document online editing based on OnlyOffice.

Enable Online Editing​

Configuration Location

For single-node Docker Compose, add it under app.environment in /data/mingdao/script/docker-compose.yaml.

For Kubernetes cluster deployments, add it under data in the env-list ConfigMap in /data/mingdao/script/kubernetes/config.yaml.

Under the environment section of the app service, add the following configuration and then restart the service:

app:
environment:
ENV_DOC_EDIT_ENABLE: "true" # Added: Enable OnlyOffice online editing
Click to view the complete modification example for single-node Docker Compose
version: '3'

services:
app:
image: registry.cn-hangzhou.aliyuncs.com/mdpublic/mingdaoyun-hap:7.5.3
environment: &app-environment
ENV_ADDRESS_MAIN: "https://hap.domain.com"
ENV_APP_VERSION: "7.5.3"
ENV_API_TOKEN: "******"
ENV_DOC_EDIT_ENABLE: "true" # Added: Enable OnlyOffice online editing
ports:
- 8880:8880
volumes:
- ./volume/data/:/data/
- ../data:/data/mingdao/data

sc:
image: registry.cn-hangzhou.aliyuncs.com/mdpublic/mingdaoyun-sc:3.2.0
environment:
<<: *app-environment
volumes:
- ./volume/data/:/data/

command:
image: registry.cn-hangzhou.aliyuncs.com/mdpublic/mingdaoyun-command:node1018-python36

doc:
image: registry.cn-hangzhou.aliyuncs.com/mdpublic/mingdaoyun-doc:2.0.0