/onlyoffice-licensed

Onlyoffice with license patch and mobile editing restored

Primary LanguageDockerfile

Patched ONLYOFFICE Docs (Community Edition)

Notes

Please don't ask for setup support. I cannot support all your different setups. Sorry. Please also don't ask OnlyOffice devs for support if something is broken with this image.

There will be bugs. Some functionaly will absolutely be broken. Don't expect this repository to provide every feature the paid version provides.

Some mobile editing features are reverted by the patches to very old code (before they were removed). This code can not only break but also will not receive security updates.

Features

This Dockerfile and patches compile a version of OnlyOffice Docs server with mobile editing enabled in the Nextcloud apps for an unlimited amount of concurrent users.

The patches provided in this repository only restores basic editing on mobile. It also adds a way to use "Picture from storage" on mobile.

It can be integrated into e.g. Nextcloud or ownCloud like the official images.

Background

Just about two months after Nextcloud released their partnership with Ascensio and featured a community version of OnlyOffice, the latter decided to remove support for mobile editing of documents. This affected the Nextcloud app, killing a feature that was previously marketed by both companies.

The changes were executed without any prior notice and alienated quite a lot of home users, who would now be forced to pay more than €1.000 to unlock that previously free feature. Only after some outcries Ascensio deigned to release a statement and a new, albeit "limited", offer of €90 for home servers. This offer has since expired and their licensing tier suggests current licenses are valid for one year, starting at about €140.

In my opinion these deceptive practices of advertising a feature only to take it away are unacceptable for a company presenting itself and their products as open source.

Installation

Installation using docker-compose recommended. Make sure you're running the newest version of docker and docker-compose. Replace secret with a secret. A 32 character string containing upper and lowercase letters, numbers and special characters is recommended.

You can get the sample docker-compose.yml below by running:

wget https://raw.githubusercontent.com/cmwedding-it/onlyoffice-licensed/main/docker-compose.yml
services:
  onlyoffice:
    container_name: onlyoffice
    image: cmwedding/onlyoffice-licensed
    ports:
      - "80:80"
      - "443:443"
    volumes:
      - data:/var/www/onlyoffice/Data
      - db:/var/lib/postgresql
      - etc:/etc/onlyoffice
    environment:
      - JWT_ENABLED=true
      - JWT_SECRET=secret
      - JWT_IN_BODY=true
      - JWT_HEADER=AuthorizationJwt

volumes:
  data:
  db:
  etc:

Verify

To verify that the container is running successfully open [server-url]/healthcheck (has to return true) and for the version number open [server-url]/index.html and check the output of that page or [server-url]/web-apps/apps/api/documents/api.js and check the header comment.

Troubleshooting

Problem: It stopped working after an update

Delete the compose project, delete the volumes, get the updated compose file. Then run

docker volume rm onlyoffice_lib && \
docker volume rm onlyoffice_logs && \
docker volume rm onlyoffice_db && \
docker volume rm onlyoffice_data && \
docker volume rm onlyoffice_etc

Any other problem: please open an issue

Thanks

This is a fork of a fork of aleho/onlyoffice-ce-docker-license. The original repo was heavily inspired by the works of Zegorax/OnlyOffice-Unlimited.