Files
personal-wiki/raw/onlyoffice/onlyoffice-step-by-step.md
T

13 lines
1.8 KiB
Markdown

OnlyOffice (Community Edition, AGPL-3) for docx access — step by step
Source: /opt/data/opencloud-dockhand/onlyoffice-docs.yml (standalone compose)
Environment: OpenCloud dockhand .99 / dock.maukit.com (traefik, opencloud-net)
1. Verify existing setup: docker ps; read /opt/data/opencloud-dockhand/euro-office.yml (existing OnlyOffice/WOPI via Euro-Office).
2. Free version: onlyoffice/documentserver:7.2.0 (Community Edition; 20 concurrent connections max; AGPL-3). Commercial = enterprise.
3. Compose (standalone, separate stack): image, WOPI_ENABLED=true, JWT_SECRET (generate via openssl rand -hex 32; MUST match opencloud's EUO_OFFICE_JWT_SECRET or update both), JWT_HEADER=AuthorizationJwt, USE_UNAUTHORIZED_STORAGE per TLS state, traefik labels (Host onlyoffice.maukit.com, websecure, letsencrypt), healthcheck (hosting/discovery 200), ports 8081:80, volumes onlyoffice-data/logs, network opencloud-net external.
4. Env overrides: ONLYOFFICE_DOCKER_IMAGE / ONLYOFFICE_DOCKER_TAG / ONLYOFFICE_DOMAIN / ONLYOFFICE_JWT_SECRET / INSECURE.
5. Deploy: docker compose -f onlyoffice-docs.yml up -d. Verify: docker ps | grep onlyoffice-docs; curl https://onlyoffice.maukit.com/hosting/discovery (should return 200; if 502/504 check traefik/network / firewall / JWT match).
6. Connect to OpenCloud: in opencloud env, either reuse EURO_OFFICE_DOMAIN=onlyoffice.maukit.com (reconnects to this instance) or edit COLLABORATION_APP_ADDR to https://onlyoffice.maukit.com. Restart opencloud container.
7. Test: create/edit .docx in OpenCloud; should open in OnlyOffice editor via WOPI.
8. Troubleshooting: connect errors = JWT mismatch (verify secret identical); 403/404 = network/routing (verify opencloud-net / traefik); SSL = ensure onlyoffice domain has letsencrypt (traefik handles) or use internal http for internal routes.