Skip to main content

OnlyOffice Online Editing

Note

The default document online preview service provided by HAP is based on OnlyOffice (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: nocoly/hap:7.6.0
environment: &app-environment
ENV_ADDRESS_MAIN: "https://hap.domain.com"
ENV_APP_VERSION: "7.6.0"
ENV_API_TOKEN: "******"
ENV_DOC_EDIT_ENABLE: "true" # Added: Enable OnlyOffice online editing
ports:
- 8880:8880
volumes:
- ./volume/data/:/data/
- ../data:/data/hap/data

sc:
image: nocoly/sc:3.3.0
environment:
<<: *app-environment
volumes:
- ./volume/data/:/data/

command:
image: nocoly/command:node2011-python312

doc:
image: nocoly/doc:2.0.0